1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed: Problems with backup before update (see forums for announcement on updating)

This commit is contained in:
Mark McDowall 2014-07-10 07:08:10 -07:00
parent f9586e6f77
commit c5a62bfdf1

View File

@ -51,6 +51,9 @@ public void Backup(BackupType backupType)
{
_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 backupPath = Path.Combine(GetBackupFolder(backupType), backupFilename);
@ -61,9 +64,6 @@ public void Backup(BackupType backupType)
CleanupOldBackups(backupType);
}
_diskProvider.EnsureFolder(_backupTempFolder);
_diskProvider.EnsureFolder(GetBackupFolder(backupType));
BackupConfigFile();
BackupDatabase();