mirror of https://github.com/lidarr/Lidarr
Fixed: Problems with backup before update (see forums for announcement on updating)
This commit is contained in:
parent
f9586e6f77
commit
c5a62bfdf1
|
@ -51,6 +51,9 @@ namespace NzbDrone.Core.Backup
|
||||||
{
|
{
|
||||||
_logger.ProgressInfo("Starting Backup");
|
_logger.ProgressInfo("Starting Backup");
|
||||||
|
|
||||||
|
_diskProvider.EnsureFolder(_backupTempFolder);
|
||||||
|
_diskProvider.EnsureFolder(GetBackupFolder(backupType));
|
||||||
|
|
||||||
var backupFilename = String.Format("nzbdrone_backup_{0:yyyy.MM.dd_HH.mm.ss}.zip", DateTime.Now);
|
var backupFilename = String.Format("nzbdrone_backup_{0:yyyy.MM.dd_HH.mm.ss}.zip", DateTime.Now);
|
||||||
var backupPath = Path.Combine(GetBackupFolder(backupType), backupFilename);
|
var backupPath = Path.Combine(GetBackupFolder(backupType), backupFilename);
|
||||||
|
|
||||||
|
@ -61,9 +64,6 @@ namespace NzbDrone.Core.Backup
|
||||||
CleanupOldBackups(backupType);
|
CleanupOldBackups(backupType);
|
||||||
}
|
}
|
||||||
|
|
||||||
_diskProvider.EnsureFolder(_backupTempFolder);
|
|
||||||
_diskProvider.EnsureFolder(GetBackupFolder(backupType));
|
|
||||||
|
|
||||||
BackupConfigFile();
|
BackupConfigFile();
|
||||||
BackupDatabase();
|
BackupDatabase();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue