Enhance backup scheduling interface and logging

- Updated the backup scheduling form to include a tooltip explaining cron expression format and examples, improving user guidance.
- Integrated a selection component for predefined cron expressions, allowing users to choose or enter custom schedules more easily.
- Added logging for backup details in the server utility to aid in debugging and monitoring backup schedules.
This commit is contained in:
Mauricio Siu
2025-05-04 03:31:51 -06:00
parent 614b9d25a8
commit 96b1df2199
2 changed files with 60 additions and 5 deletions

View File

@@ -21,6 +21,9 @@ export const scheduleBackup = (backup: BackupSchedule) => {
compose,
} = backup;
scheduleJob(backupId, schedule, async () => {
console.log("backup", backup);
console.log("databaseType", databaseType);
console.log("schedule", schedule);
if (backup.backupType === "database") {
if (databaseType === "postgres" && postgres) {
await runPostgresBackup(postgres, backup);