feat(database): make backup schedule configurable via system keys (#4251)

This commit is contained in:
Ludy
2025-09-04 15:02:31 +01:00
committed by GitHub
parent 528968bfe9
commit 8113728d3d
4 changed files with 10 additions and 2 deletions
@@ -18,7 +18,7 @@ public class ScheduledTasks {
private final DatabaseServiceInterface databaseService;
@Scheduled(cron = "0 0 0 * * ?")
@Scheduled(cron = "#{applicationProperties.system.databaseBackup.cron}")
public void performBackup() throws SQLException, UnsupportedProviderException {
databaseService.exportDatabase();
}