Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ohmg/conf/management/commands/run-db-backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Command(BaseCommand):
Daily backups are stored locally and rotated everyday. Directory structure:
LOCAL
.db_backups/daily/
<YYYYMMDD>__<db name>.sql
<db name>__<YYYYMMDD>.sql
(repeated for the last 10 days)

S3
Expand Down Expand Up @@ -70,7 +70,7 @@ def apply_profile(cmd: list):
db_pass = settings.DATABASES["default"]["PASSWORD"]
db_port = settings.DATABASES["default"]["PORT"]

fname = now.strftime(f"%Y%m%d__{db_name}.sql")
fname = now.strftime(f"{db_name}__%Y%m%d.sql")
fpath = Path(backup_dir, fname)

cmd = [
Expand Down