mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
New: Backup database before updating
This commit is contained in:
parent
be9b7284b5
commit
85b211738b
6 changed files with 67 additions and 7 deletions
|
@ -7,7 +7,7 @@ namespace NzbDrone.Update.UpdateEngine
|
|||
{
|
||||
public interface IBackupAndRestore
|
||||
{
|
||||
void BackUp(string source);
|
||||
void Backup(string source);
|
||||
void Restore(string target);
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ namespace NzbDrone.Update.UpdateEngine
|
|||
_logger = logger;
|
||||
}
|
||||
|
||||
public void BackUp(string source)
|
||||
public void Backup(string source)
|
||||
{
|
||||
_logger.Info("Creating backup of existing installation");
|
||||
_diskProvider.CopyFolder(source, _appFolderInfo.GetUpdateBackUpFolder());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue