Feature/improve automated backup (#597)

* Add option to disable cleanup of backups

* Ensure the minimum TTL of backups to 1 day

* Schedule the automated backup on a specific time of the day

* Introduce scheduler that takes system hibernation time into account

In case the system was hibernating/suspended scheduled task that should have been executed during that time would not get triggered and thus, miss an execution.

To prevent this, this new scheduler periodically checks if the system was suspended and in case it was, triggers any task that missed its last execution

* Use new scheduler
This commit is contained in:
schroda
2023-07-20 23:47:30 +02:00
committed by GitHub
parent 0338ac3810
commit c1d702a51c
8 changed files with 203 additions and 50 deletions

View File

@@ -30,6 +30,7 @@ server.electronPath = ""
# backup
server.backupPath = ""
server.backupTime = "00:00"
server.backupInterval = 1
server.automatedBackups = true
server.backupTTL = 14