mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
feat(database): make backup schedule configurable via system keys (#4251)
This commit is contained in:
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user