Created
April 29, 2023 20:11
-
-
Save ohld/a8efcf7064036ae75a45bef8cabde779 to your computer and use it in GitHub Desktop.
Dokku Postgres Upgrade 11 to latest w/ PostGIS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dokku postgres:export DB | gzip -9 > DB.sql.gz | |
docker pull postgis/postgis:latest | |
export POSTGRES_IMAGE="postgis/postgis" | |
export POSTGRES_IMAGE_VERSION="latest" | |
dokku postgres:create DB | |
gunzip DB.sql.gz | dokku postgres:import DB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Transfer postgres backup from server to a server using your machine as a intermediate device (you also would have a local copy of a db).