Create upgrade.sh
This commit is contained in:
parent
fa8a231dda
commit
5e9212f9cc
19
upgrade.sh
Normal file
19
upgrade.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
docker run --rm \
|
||||
-v /${CWD}://tmp \
|
||||
-v openstreetmap-data://var/lib/postgresql/12/main \
|
||||
-w //tmp \
|
||||
postgres:12 \
|
||||
pg_dumpall -c -v -U prostgres > dump.sql
|
||||
|
||||
docker run --rm \
|
||||
-v /${CWD}://tmp \
|
||||
-v openstreetmap-data://var/lib/postgresql/13/main \
|
||||
-w //tmp \
|
||||
postgres:13 \
|
||||
psql -U postgres -d gis < dump.sql
|
||||
|
||||
rm ./dump.sql
|
||||
Loading…
Reference in New Issue
Block a user