Last active 1719131991

Revision 33260b92fc89e9752dffdbb0aa37a10aaaab1d7a

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 db.sql | docker exec -i <container-name> psql -U <user>