Skip to main content
DBDock doesn’t ship its own daemon — pair the SDK with node-cron for programmatic scheduling.

Install

Minimal scheduler

Keep this process alive with PM2, systemd, or Docker.

TypeScript version

Reading schedules from config

If you want to read schedules defined via dbdock schedule, load them from dbdock.config.json:

Running alongside your app

Embed the scheduler in your existing Node.js service — no separate process needed:
Downside: if your app restarts (deploy, crash), scheduled backups may be missed during the restart window. For mission-critical backups, use a separate process or cloud scheduler instead.

Multiple schedules

Mix frequencies and formats for a tiered backup strategy.

Graceful shutdown

Without this, a scheduled job mid-execution gets killed along with the process.

See also

Scheduling overview

All scheduling options compared.

Creating backups

BackupService.createBackup() details.