JellyfinMigrationBackupAttribute.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. namespace Jellyfin.Server.Migrations;
  3. /// <summary>
  4. /// Marks an <see cref="JellyfinMigrationAttribute"/> migration and instructs the <see cref="JellyfinMigrationService"/> to perform a backup.
  5. /// </summary>
  6. [AttributeUsage(System.AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
  7. public sealed class JellyfinMigrationBackupAttribute : System.Attribute
  8. {
  9. /// <summary>
  10. /// Gets or Sets a value indicating whether a backup of the old library.db should be performed.
  11. /// </summary>
  12. public bool LegacyLibraryDb { get; set; }
  13. /// <summary>
  14. /// Gets or Sets a value indicating whether a backup of the Database should be performed.
  15. /// </summary>
  16. public bool JellyfinDb { get; set; }
  17. /// <summary>
  18. /// Gets or Sets a value indicating whether a backup of the metadata folder should be performed.
  19. /// </summary>
  20. public bool Metadata { get; set; }
  21. /// <summary>
  22. /// Gets or Sets a value indicating whether a backup of the Trickplay folder should be performed.
  23. /// </summary>
  24. public bool Trickplay { get; set; }
  25. /// <summary>
  26. /// Gets or Sets a value indicating whether a backup of the Subtitles folder should be performed.
  27. /// </summary>
  28. public bool Subtitles { get; set; }
  29. }