From d2a2bc73d29f57e87a7d735915069822e70be84e Mon Sep 17 00:00:00 2001 From: Adam Cox Date: Fri, 1 May 2026 12:51:57 -0500 Subject: [PATCH] set archive file name without digits in front --- ohmg/conf/management/commands/run-db-backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ohmg/conf/management/commands/run-db-backup.py b/ohmg/conf/management/commands/run-db-backup.py index 2c63c7f0..69e681ea 100644 --- a/ohmg/conf/management/commands/run-db-backup.py +++ b/ohmg/conf/management/commands/run-db-backup.py @@ -19,7 +19,7 @@ class Command(BaseCommand): Daily backups are stored locally and rotated everyday. Directory structure: LOCAL .db_backups/daily/ - __.sql + __.sql (repeated for the last 10 days) S3 @@ -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 = [