Update upgade.sh
This commit is contained in:
parent
dc8706ef17
commit
9f7d3f8495
@ -6,14 +6,14 @@ docker run --rm \
|
|||||||
-v /${CWD}://tmp \
|
-v /${CWD}://tmp \
|
||||||
-v openstreetmap-data://var/lib/postgresql/12/main \
|
-v openstreetmap-data://var/lib/postgresql/12/main \
|
||||||
-w //tmp \
|
-w //tmp \
|
||||||
postgres:12 \
|
postgis/postgis:12-3.1 \
|
||||||
pg_dumpall -U prostgres > dump.sql
|
pg_dumpall -U prostgres > dump.sql
|
||||||
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v /${CWD}://tmp \
|
-v /${CWD}://tmp \
|
||||||
-v openstreetmap-data://var/lib/postgresql/13/main \
|
-v openstreetmap-data://var/lib/postgresql/13/main \
|
||||||
-w //tmp \
|
-w //tmp \
|
||||||
postgres:13 \
|
postgis/postgis:13-3.1 \
|
||||||
psql -U postgres -d gis < dump.sql
|
psql -U postgres -d gis < dump.sql
|
||||||
|
|
||||||
rm ./dump.sql
|
rm ./dump.sql
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user