feat: add functionality to keep the latest N backups after running a job

This commit is contained in:
Mauricio Siu
2026-02-26 22:26:30 -06:00
parent df27b8b748
commit f96a6a509b

View File

@@ -83,6 +83,7 @@ export const runJobs = async (job: QueueJob) => {
return;
}
await runComposeBackup(compose, backup);
await keepLatestNBackups(backup, server.serverId);
}
} else if (job.type === "server") {
const { serverId } = job;