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