diff --git a/hb_server/apps/develop/tasks.py b/hb_server/apps/develop/tasks.py index 3a5ea27..5b7351f 100644 --- a/hb_server/apps/develop/tasks.py +++ b/hb_server/apps/develop/tasks.py @@ -12,7 +12,7 @@ def backup_database(): """ import datetime name = datetime.datetime.now().strftime('%Y%m%d%H%M%S') - command = '''pg_dump "user=postgres password=zcDsj2021 dbname=hberp" > /home/lighthouse/backup/hberp_{}.sql'''.format(name) + command = '''pg_dump "user=postgres password=zcDsj2021 dbname=hberp" > /home/lighthouse/backup/database/hberp_{}.sql'''.format(name) completed = subprocess.run(command, shell=True, capture_output=True, text=True) return completed