Skip to main content
schedule is an interactive menu for adding, editing, and removing cron schedules. Schedules are stored in dbdock.config.json.
The CLI manages config — it doesn’t run schedules. To actually execute scheduled backups, you need to either run DBdock as a long-lived process (see scheduling guide) or use an external scheduler like system cron.

Interactive menu

Presets

When adding a schedule, DBdock offers common presets:
PresetCronDescription
Hourly0 * * * *Every hour on the hour
Daily (midnight)0 0 * * *00:00 every day
Daily (2 AM)0 2 * * *02:00 every day
Weekly (Sunday)0 0 * * 000:00 every Sunday
Monthly0 0 1 * *00:00 on the 1st of each month
Customyour cronAny valid 5-field cron expression

Schedule structure

Schedules end up in dbdock.config.json:

Running the schedules

Option 1 — long-lived DBdock process

Use the programmatic API with node-cron. See SDK → scheduling.

Option 2 — external cron

Let system cron trigger dbdock backup on the schedule you want:
This bypasses dbdock schedule entirely and is the simplest option on a single server.

Option 3 — cloud scheduler

On Kubernetes (CronJob), AWS (EventBridge → Lambda/ECS), or GCP (Cloud Scheduler), trigger dbdock backup on the schedule.

See also

Scheduling guide

Detailed guide on running scheduled backups.

dbdock status

View configured schedules.