feat: backup in progress status

This commit is contained in:
Nicolas Meienberger
2025-11-08 10:33:08 +01:00
parent 42497be4b5
commit ba08c97681
8 changed files with 43 additions and 13 deletions

View File

@@ -181,6 +181,11 @@ const executeBackup = async (scheduleId: number, manual = false) => {
logger.info(`Starting backup for volume ${volume.name} to repository ${repository.name}`);
await db
.update(backupSchedulesTable)
.set({ lastBackupStatus: "in_progress", updatedAt: Date.now() })
.where(eq(backupSchedulesTable.id, scheduleId));
try {
const volumePath = getVolumePath(volume.name);