Add Full system backup feature (#13945)

This commit is contained in:
JPVenson
2025-05-19 03:39:04 +03:00
committed by GitHub
parent cdbf4752b9
commit fe2596dc0e
21 changed files with 841 additions and 21 deletions

View File

@@ -14,7 +14,6 @@ public class TrickplayInfo
/// <remarks>
/// Required.
/// </remarks>
[JsonIgnore]
public Guid ItemId { get; set; }
/// <summary>

View File

@@ -61,7 +61,6 @@ namespace Jellyfin.Database.Implementations.Entities
/// <remarks>
/// Identity, Indexed, Required.
/// </remarks>
[JsonIgnore]
public Guid Id { get; set; }
/// <summary>

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
@@ -62,4 +63,12 @@ public interface IJellyfinDatabaseProvider
/// <param name="cancellationToken">A cancellation token.</param>
/// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns>
Task RestoreBackupFast(string key, CancellationToken cancellationToken);
/// <summary>
/// Removes all contents from the database.
/// </summary>
/// <param name="dbContext">The Database context.</param>
/// <param name="tableNames">The names of the tables to purge or null for all tables to be purged.</param>
/// <returns>A Task.</returns>
Task PurgeDatabase(JellyfinDbContext dbContext, IEnumerable<string>? tableNames);
}