Add way to exclude settings from backups (#1682)

* Add way to exclude settings from backups

* Exclude flaresolverrEnabled

* Exclude usernames/passwords

* Exclude writing deprecated settings to the backup

* Exclude AuthMode
This commit is contained in:
Mitchell Syer
2025-10-03 10:37:50 -04:00
committed by GitHub
parent 9a9c0532de
commit fb05371ac2
5 changed files with 57 additions and 5 deletions
@@ -154,7 +154,7 @@ object ProtoBackupExport : ProtoBackupBase() {
automatedBackupDir.listFiles { file -> file.name.startsWith(Backup.getBasename(AUTO_BACKUP_FILENAME)) }?.forEach { file ->
try {
cleanupAutomatedBackupFile(file)
} catch (e: Exception) {
} catch (_: Exception) {
// ignore, will be retried on next cleanup
}
}
@@ -311,10 +311,6 @@ object ProtoBackupExport : ProtoBackupBase() {
}
}
// if (flags.includeHistory) {
// backupManga.history = TODO()
// }
backupManga
}