mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
fix: clean up orphaned .sql on compression failure and fix stale startup log
- backup-lib: delete uncompressed .sql file in catch block when gzip compression fails, preventing silent disk usage accumulation - server: replace stale retentionDays scalar with retentionSource in startup log since retention is now read from DB on each backup tick
This commit is contained in:
parent
fcbae62baf
commit
b1e457365b
2 changed files with 4 additions and 1 deletions
|
|
@ -670,7 +670,7 @@ export async function startServer(): Promise<StartedServer> {
|
|||
logger.info(
|
||||
{
|
||||
intervalMinutes: config.databaseBackupIntervalMinutes,
|
||||
retentionDays: config.databaseBackupRetentionDays,
|
||||
retentionSource: "instance-settings-db",
|
||||
backupDir: config.databaseBackupDir,
|
||||
},
|
||||
"Automatic database backups enabled",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue