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:
parent
f9586e6f77
commit
c5a62bfdf1
@ -51,6 +51,9 @@ public void Backup(BackupType backupType)
|
|||||||
{
|
{
|
||||||
_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 @@ public void Backup(BackupType backupType)
|
|||||||
CleanupOldBackups(backupType);
|
CleanupOldBackups(backupType);
|
||||||
}
|
}
|
||||||
|
|
||||||
_diskProvider.EnsureFolder(_backupTempFolder);
|
|
||||||
_diskProvider.EnsureFolder(GetBackupFolder(backupType));
|
|
||||||
|
|
||||||
BackupConfigFile();
|
BackupConfigFile();
|
||||||
BackupDatabase();
|
BackupDatabase();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user