From c5a62bfdf1c5da43c5e1d61ea7e34c04241384f5 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 10 Jul 2014 07:08:10 -0700 Subject: [PATCH] Fixed: Problems with backup before update (see forums for announcement on updating) --- src/NzbDrone.Core/Backup/BackupService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Backup/BackupService.cs b/src/NzbDrone.Core/Backup/BackupService.cs index 027978382..33209cc9b 100644 --- a/src/NzbDrone.Core/Backup/BackupService.cs +++ b/src/NzbDrone.Core/Backup/BackupService.cs @@ -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();