Add KEEP_LAST retention policy for backups
docker-build / Build image (push) Successful in 25s

Add KEEP_LAST environment variable to always preserve the N most recent
backups regardless of age, preventing data loss when backups haven't
been created for extended periods. Defaults to 10 copies.
This commit is contained in:
2026-09-01 12:09:19 +07:00
parent 819635b54d
commit 3183bf5267
5 changed files with 45 additions and 5 deletions
+1
View File
@@ -1,6 +1,7 @@
DB_FILE=/data/db.sqlite
CRONTAB="00 06 * * *"
DELETE_AFTER=10
KEEP_LAST=10
TZ=Asia/Novosibirsk
MINIO_PATH=myminio://sqlite/master/
MINIO_ACCOUNT_ID=account