Merge pull request #3439 from Dokploy/3102-web-server-backup-keep-the-latest-not-working

feat(backup): add functionality to keep the latest N backups after ru…
This commit is contained in:
Mauricio Siu
2026-01-11 20:44:39 -06:00
committed by GitHub

View File

@@ -285,6 +285,7 @@ export const backupRouter = createTRPCRouter({
.mutation(async ({ input }) => {
const backup = await findBackupById(input.backupId);
await runWebServerBackup(backup);
await keepLatestNBackups(backup);
return true;
}),
listBackupFiles: protectedProcedure