Skip to content

Instantly share code, notes, and snippets.

@leckylao
Created March 27, 2022 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leckylao/38938d80c39b3cf623a4678972e5549f to your computer and use it in GitHub Desktop.
Save leckylao/38938d80c39b3cf623a4678972e5549f to your computer and use it in GitHub Desktop.
Postgres back up and restore
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