mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user