feat(backup): protect host188 product data

This commit is contained in:
Your Name
2026-07-18 18:39:35 +08:00
parent 592a195676
commit 420738514e
16 changed files with 438 additions and 16 deletions

View File

@@ -64,6 +64,7 @@ bash -n \
scripts/backup/backup-sentry.sh \
scripts/backup/backup-ai-artifacts.sh \
scripts/backup/backup-public-routes.sh \
scripts/backup/backup-host188-products.sh \
scripts/backup/configure-offsite-rclone.sh \
scripts/backup/configure-offsite-b2.sh \
scripts/backup/sync-offsite-backups.sh \

View File

@@ -1192,6 +1192,7 @@ def _collect_110(host: str) -> list[str]:
"backup-sentry.sh",
"backup-ai-artifacts.sh",
"backup-public-routes.sh",
"backup-host188-products.sh",
"configure-offsite-rclone.sh",
"configure-offsite-b2.sh",
"sync-offsite-backups.sh",
@@ -1230,6 +1231,7 @@ def _collect_110(host: str) -> list[str]:
("clawbot", "/backup/clawbot", 48),
("ai_artifacts", "/backup/ai-artifacts", 48),
("public_routes", "/backup/public-routes", 168),
("host188_products", "/backup/host188-products", 48),
]:
timestamp, count = _latest_restic_snapshot(repo)
age = int(time.time()) - timestamp if timestamp else 0
@@ -1249,11 +1251,11 @@ def _collect_110(host: str) -> list[str]:
coverage_domains = {
"host": ["configs"],
"database": ["awoooi_db"],
"website": ["public_routes", "momo"],
"service": ["gitea", "harbor", "sentry", "monitoring", "signoz"],
"database": ["awoooi_db", "host188_products"],
"website": ["public_routes", "momo", "host188_products"],
"service": ["gitea", "harbor", "sentry", "monitoring", "signoz", "host188_products"],
"package": ["configs", "ai_artifacts"],
"tool": ["ai_artifacts", "open_webui", "clawbot", "langfuse"],
"tool": ["ai_artifacts", "open_webui", "clawbot", "langfuse", "host188_products"],
"log": ["monitoring", "signoz", "sentry"],
}
for domain, jobs in coverage_domains.items():