Skip to content

Commit 6d94da1

Browse files
committed
feat(backup): add functionality to keep the latest N backups after running a backup
1 parent 10c0de9 commit 6d94da1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/dokploy/server/api/routers/backup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ export const backupRouter = createTRPCRouter({
285285
.mutation(async ({ input }) => {
286286
const backup = await findBackupById(input.backupId);
287287
await runWebServerBackup(backup);
288+
await keepLatestNBackups(backup);
288289
return true;
289290
}),
290291
listBackupFiles: protectedProcedure

0 commit comments

Comments
 (0)