Backup files now show the version of Kavita in the filename.
This commit is contained in:
parent
d2c3bd7f1c
commit
3c486e7c8a
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ using API.Entities.Enums;
|
|||
using API.Logging;
|
||||
using API.SignalR;
|
||||
using Hangfire;
|
||||
using Kavita.Common.EnvironmentInfo;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace API.Services.Tasks;
|
||||
|
@ -91,7 +92,7 @@ public class BackupService : IBackupService
|
|||
await SendProgress(0.1F, "Copying core files");
|
||||
|
||||
var dateString = $"{DateTime.UtcNow.ToShortDateString()}_{DateTime.UtcNow.ToLongTimeString()}".Replace("/", "_").Replace(":", "_");
|
||||
var zipPath = _directoryService.FileSystem.Path.Join(backupDirectory, $"kavita_backup_{dateString}.zip");
|
||||
var zipPath = _directoryService.FileSystem.Path.Join(backupDirectory, $"kavita_backup_{dateString}_v{BuildInfo.Version}.zip");
|
||||
|
||||
if (File.Exists(zipPath))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue