Created
March 27, 2022 07:55
-
-
Save leckylao/38938d80c39b3cf623a4678972e5549f to your computer and use it in GitHub Desktop.
Postgres back up and restore
This file contains hidden or 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
Backup | |
`docker exec backend_postgres_1 pg_dump -U swell -W swellnetwork > backup.sql ` | |
Restore: | |
`docker exec backend_postgres_1 psql -U swell -W swellnetwork < backup.sql ` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment