mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-19 02:15:17 +00:00
Merge pull request #3816 from Dokploy/3815-in-database-backups-of-docker-compose-type-projects-the-keep-the-latest-n-function-does-not-take-effect
feat: add functionality to keep the latest N backups after running a job
This commit is contained in:
@@ -83,6 +83,7 @@ export const runJobs = async (job: QueueJob) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await runComposeBackup(compose, backup);
|
await runComposeBackup(compose, backup);
|
||||||
|
await keepLatestNBackups(backup, server.serverId);
|
||||||
}
|
}
|
||||||
} else if (job.type === "server") {
|
} else if (job.type === "server") {
|
||||||
const { serverId } = job;
|
const { serverId } = job;
|
||||||
|
|||||||
Reference in New Issue
Block a user