OnlineJudgeDeploy/backup/db_backup.sh
2018-01-19 23:35:56 +08:00

2 lines
101 B
Bash

docker exec -it oj-postgres pg_dumpall -c -U onlinejudge > db_backup_`date +%Y_%m_%d"_"%H_%M_%S`.sql