From 75c98193a6239e4f33aa7b2543d618ce42c350d1 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Fri, 19 Jan 2018 23:35:30 +0800 Subject: [PATCH] add backup script --- backup/db_backup.sh | 1 + 1 file changed, 1 insertion(+) create mode 100644 backup/db_backup.sh diff --git a/backup/db_backup.sh b/backup/db_backup.sh new file mode 100644 index 0000000..f61c0fc --- /dev/null +++ b/backup/db_backup.sh @@ -0,0 +1 @@ +docker exec -it oj-postgres pg_dumpall -c -U onlinejudge > db_backup_`date +%Y_%m_%d"_"%H_%M_%S`.sql