mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
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:
@@ -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) }
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user