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