Última atividade 1719131991

Revisão 9c2525313226ca80738b28835f56ae4b275370f1

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