Last active 1719131991

Revision 820d04b63882faad64fa6c9edd3b72b158c43c70

gistfile1.txt Raw
1# BACKUP
2docker exec -i <container-name> /bin/bash -c "PGPASSWORD=<passwd> pg_dump --username <user> <db-name>" > ~/db.sql
3
4# RESTORE
5cat your_dump.sql | docker exec -i your-db-container psql -U postgres