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
1 changed files with 3 additions and 3 deletions

View File

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