Last active 1719131991

Revision 1745ec26a45ff7e929d62f84ceb28eee27ca9c19

backup-restore.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>