最後活躍 1719131991

backup-restore.txt 原始檔案
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> <db-name>