新增后台数据库备份与回滚

This commit is contained in:
2026-06-23 12:27:16 +08:00
parent 668e0403af
commit 529e175d2c
17 changed files with 754 additions and 26 deletions

View File

@@ -6,7 +6,7 @@ DATA_ROOT = Path(settings.data_root)
def ensure_data_dirs() -> None:
for name in ["uploads", "error-reports", "exports", "pdf-cache"]:
for name in ["uploads", "error-reports", "exports", "pdf-cache", "db-backups"]:
(DATA_ROOT / name).mkdir(parents=True, exist_ok=True)