+ deduplicate

This commit is contained in:
Volobuev Andrey
2025-07-09 17:30:48 +03:00
parent 617cb3fa94
commit 5ff7c2aca9
5 changed files with 79 additions and 22 deletions

View File

@@ -175,7 +175,7 @@ def backup_dashboards(client: SupersetClient,
if rotate_archive:
# [ANCHOR] ARCHIVE_OLD_BACKUPS
try:
archive_exports(dashboard_dir, logger=logger)
archive_exports(dashboard_dir, logger=logger, deduplicate=True)
logger.debug(f"[DEBUG] Старые экспорты для '{dashboard_title}' архивированы.")
except Exception as cleanup_error:
logger.warning(
@@ -282,6 +282,7 @@ def main() -> int:
clients['dev'],
"DEV",
superset_backup_repo,
rotate_archive=True,
logger=logger
)
@@ -290,6 +291,7 @@ def main() -> int:
clients['sbx'],
"SBX",
superset_backup_repo,
rotate_archive=True,
logger=logger
)
@@ -298,6 +300,7 @@ def main() -> int:
clients['prod'],
"PROD",
superset_backup_repo,
rotate_archive=True,
logger=logger
)