mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 10:54:38 -05:00
Use "backupInterval" to disable auto backups (#608)
Gets rid of unnecessary setting
This commit is contained in:
@@ -56,7 +56,8 @@ object ProtoBackupExport : ProtoBackupBase() {
|
||||
fun scheduleAutomatedBackupTask() {
|
||||
HAScheduler.deschedule(backupSchedulerJobId)
|
||||
|
||||
if (!serverConfig.automatedBackups) {
|
||||
val areAutomatedBackupsDisabled = serverConfig.backupInterval == 0
|
||||
if (areAutomatedBackupsDisabled) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@ class ServerConfig(getConfig: () -> Config, moduleName: String = MODULE_NAME) :
|
||||
var backupPath: String by overridableConfig
|
||||
var backupTime: String by overridableConfig
|
||||
var backupInterval: Int by overridableConfig
|
||||
var automatedBackups: Boolean by overridableConfig
|
||||
var backupTTL: Int by overridableConfig
|
||||
|
||||
companion object {
|
||||
|
||||
Reference in New Issue
Block a user