mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-24 04:44:57 +02:00
Update Backup to use key to check for old backups no longer supported
This commit is contained in:
parent
1b97582975
commit
c5a4f63670
3 changed files with 15 additions and 8 deletions
|
@ -180,8 +180,10 @@ class BackupManager {
|
|||
|
||||
const backup = new Backup({ details, fullPath: fullFilePath })
|
||||
|
||||
if (!backup.serverVersion) {
|
||||
Logger.error(`[BackupManager] Old unsupported backup was found "${backup.fullPath}"`)
|
||||
if (!backup.serverVersion) { // Backups before v2
|
||||
Logger.error(`[BackupManager] Old unsupported backup was found "${backup.filename}"`)
|
||||
} else if (!backup.key) { // Backups before sqlite migration
|
||||
Logger.warn(`[BackupManager] Old unsupported backup was found "${backup.filename}" (pre sqlite migration)`)
|
||||
}
|
||||
|
||||
backup.fileSize = await getFileSize(backup.fullPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue