Feature/backup import add backup flags (#1697)

* Add backup flags to backup restore

* Cleanup default backup flags handling

* Optionally exclude manga from backup
This commit is contained in:
schroda
2025-10-06 00:52:45 +02:00
committed by GitHub
parent 3ce9f72e3f
commit 0d79ac68f8
7 changed files with 213 additions and 135 deletions

View File

@@ -89,17 +89,7 @@ object BackupController {
ctx.contentType("application/octet-stream")
ctx.future {
future {
ProtoBackupExport.createBackup(
BackupFlags(
includeManga = true,
includeCategories = true,
includeChapters = true,
includeTracking = true,
includeHistory = true,
includeClientData = true,
includeServerSettings = true,
),
)
ProtoBackupExport.createBackup(BackupFlags.DEFAULT)
}.thenApply { ctx.result(it) }
}
},
@@ -124,17 +114,7 @@ object BackupController {
ctx.header("Content-Disposition", """attachment; filename="${Backup.getFilename()}"""")
ctx.future {
future {
ProtoBackupExport.createBackup(
BackupFlags(
includeManga = true,
includeCategories = true,
includeChapters = true,
includeTracking = true,
includeHistory = true,
includeClientData = true,
includeServerSettings = true,
),
)
ProtoBackupExport.createBackup(BackupFlags.DEFAULT)
}.thenApply { ctx.result(it) }
}
},