Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/410870d21ec3442502f794966e2e68ec02e6f575
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
18 additions and
10 deletions
@ -42,17 +42,18 @@ namespace NzbDrone.Common
public void CreateZip ( string path , IEnumerable < string > files )
{
using ( var zipFile = ZipFile . Create ( path ) )
{
zipFile . BeginUpdate ( ) ;
_logger . Debug ( "Creating archive {0}" , path ) ;
foreach ( var file in files )
{
zipFile . Add ( file , Path . GetFileName ( file ) ) ;
}
using var zipFile = ZipFile . Create ( path ) ;
zipFile . CommitUpdate ( ) ;
zipFile . BeginUpdate ( ) ;
foreach ( var file in files )
{
zipFile . Add ( file , Path . GetFileName ( file ) ) ;
}
zipFile . CommitUpdate ( ) ;
}
private void ExtractZip ( string compressedFile , string destination )
@ -66,12 +66,19 @@ namespace NzbDrone.Core.Backup
{
_logger . ProgressInfo ( "Starting Backup" ) ;
var backupFolder = GetBackupFolder ( backupType ) ;
_diskProvider . EnsureFolder ( _backupTempFolder ) ;
_diskProvider . EnsureFolder ( GetBackupFolder ( backupType ) ) ;
_diskProvider . EnsureFolder ( backupFolder ) ;
if ( ! _diskProvider . FolderWritable ( backupFolder ) )
{
throw new UnauthorizedAccessException ( $"Backup folder {backupFolder} is not writable" ) ;
}
var dateNow = DateTime . Now ;
var backupFilename = $"radarr_backup_v{BuildInfo.Version}_{dateNow:yyyy.MM.dd_HH.mm.ss}.zip" ;
var backupPath = Path . Combine ( GetBackupFolder ( backupType ) , backupFilename ) ;
var backupPath = Path . Combine ( backupFolder , backupFilename ) ;
Cleanup ( ) ;