|
|
|
@ -33,7 +33,7 @@ namespace NzbDrone.Core.Backup
|
|
|
|
|
|
|
|
|
|
private string _backupTempFolder;
|
|
|
|
|
|
|
|
|
|
private static readonly Regex BackupFileRegex = new Regex(@"nzbdrone_backup_[._0-9]+\.zip", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
|
|
|
|
private static readonly Regex BackupFileRegex = new Regex(@"radarr_backup_[._0-9]+\.zip", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
|
|
|
|
|
|
|
|
|
public BackupService(IMainDatabase maindDb,
|
|
|
|
|
IDiskTransferService diskTransferService,
|
|
|
|
@ -49,7 +49,7 @@ namespace NzbDrone.Core.Backup
|
|
|
|
|
_archiveService = archiveService;
|
|
|
|
|
_logger = logger;
|
|
|
|
|
|
|
|
|
|
_backupTempFolder = Path.Combine(_appFolderInfo.TempFolder, "nzbdrone_backup");
|
|
|
|
|
_backupTempFolder = Path.Combine(_appFolderInfo.TempFolder, "radarr_backup");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Backup(BackupType backupType)
|
|
|
|
@ -59,7 +59,7 @@ namespace NzbDrone.Core.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("radarr_backup_{0:yyyy.MM.dd_HH.mm.ss}.zip", DateTime.Now);
|
|
|
|
|
var backupPath = Path.Combine(GetBackupFolder(backupType), backupFilename);
|
|
|
|
|
|
|
|
|
|
Cleanup();
|
|
|
|
|