add backup script

This commit is contained in:
virusdefender 2018-01-19 23:35:30 +08:00
parent a8c34a95e8
commit 75c98193a6

1
backup/db_backup.sh Normal file
View File

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