Skip to content

Commit 55b59b8

Browse files
committed
fix
1 parent a72609a commit 55b59b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

common/src/main/kotlin/com/github/zly2006/xbackup/BackupDatabaseService.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,12 @@ class BackupDatabaseService(
485485
}
486486
}
487487
} catch (e: RuntimeException) {
488-
log.error("Max retry exceeded, file: $path", e)
488+
if (it.key.endsWith("_old")) {
489+
log.info("Failed to restore $path, but it's an backup file, ignoring")
490+
}
491+
else {
492+
log.error("Max retry exceeded, file: $path", e)
493+
}
489494
log.info("worked: $worked, DB lastModified: ${it.value.lastModified}, DB size: ${it.value.size}")
490495
}
491496
}

0 commit comments

Comments
 (0)