fix: hourly-backup 改用 python sqlite3 API #38
Reference in New Issue
Block a user
Delete Branch "fix/hourly-backup-sqlite3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
镜像里没装
sqlite3CLI,hourly-backup的.backup命令 15 天前就静默失败了(job 返回码 0 因为sqlite3: not found后面没有其它检查)。/data/backups里最新一份还是 2026-03-31。修复
改用镜像内置的
python3 -c "import sqlite3; s.backup(d)",效果等同于.backup命令,保证 WAL 一致性快照。不影响
daily-minio-backup(一直正常),每天备份上传到 MinIO,今天还在跑。🚀 Preview: https://pr-38.oil.oci.euphon.net
DB is a copy of production.
🚀 Preview: https://pr-38.oil.oci.euphon.net
DB is a copy of production.
🗑️ Preview torn down.