digitaldemocratic/backups/dump_database.sh

3 lines
208 B
Bash
Raw Normal View History

2021-05-18 10:31:00 +02:00
#docker exec -t isard-apps-postgresql pg_dumpall -c -U admin > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
docker exec -t isard-apps-postgresql pg_dumpall -c -U admin | gzip > ./dump_$(date +"%Y-%m-%d_%H_%M_%S").gz