Skip to content

Instantly share code, notes, and snippets.

@max10rogerio
Created September 6, 2021 17:59
Show Gist options
  • Save max10rogerio/856485f7658204161f3bca378eaf9493 to your computer and use it in GitHub Desktop.
Save max10rogerio/856485f7658204161f3bca378eaf9493 to your computer and use it in GitHub Desktop.
POSTGRES - DOCKER - Restore database
❯ cat database.dump | docker exec -i server_postgres_1 psql -U postgres -W postgres -p 5432 -h 127.0.0.1 -d database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment