kamal-backup Documentation

1 min read Original article ↗

kamal-backup Add scheduled Rails backups to Kamal

Run encrypted database and Active Storage backups from one Kamal accessory, with restore drills and review evidence built in.

kamal-backup

🕒

Scheduled backups from one accessory

Run kamal-backup init, fill in the generated config, and boot the accessory. The container runs kamal-backup schedule by default.

🗄️

Database and file snapshots

Dump PostgreSQL, MySQL/MariaDB, or SQLite with native tools, then snapshot file-backed Active Storage volumes through restic.

🔒

Restores you can rehearse

Restore production backups locally or into scratch production-side targets, run verification commands, and record the result.

Evidence for reviews

Emit redacted JSON with latest snapshots, kamal-backup check results, restore drills, retention settings, and tool versions for CASA-style security reviews.