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

This commit is contained in:
Ludy
2025-09-04 16:02:31 +02:00
committed by GitHub
parent 528968bfe9
commit 8113728d3d
4 changed files with 10 additions and 2 deletions

View File

@@ -329,12 +329,18 @@ public class ApplicationProperties {
private CustomPaths customPaths = new CustomPaths();
private String fileUploadLimit;
private TempFileManagement tempFileManagement = new TempFileManagement();
private DatabaseBackup databaseBackup = new DatabaseBackup();
public boolean isAnalyticsEnabled() {
return this.getEnableAnalytics() != null && this.getEnableAnalytics();
}
}
@Data
public static class DatabaseBackup {
private String cron = "0 0 0 * * ?"; // daily at midnight
}
@Data
public static class CustomPaths {
private Pipeline pipeline = new Pipeline();