Closed boobo94 closed 2 years ago
docker exec -t customenu-database pg_dumpall -c -U customenu_user > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
docker exec -t customenu-database pg_dumpall -c -U customenu_user | gzip > ./dump_$(date +"%Y-%m-%d_%H_%M_%S").gz
https://stackoverflow.com/questions/24718706/backup-restore-a-dockerized-postgresql-database