Simple, configuration-driven backup software for servers and workstations
open sourceGPL-3.0-or-laterself-hostablefree
borgmatic runs BorgBackup from one YAML file: source directories, one or more labelled local or remote repositories, retention, consistency checks, hooks and monitoring, so a cron job or systemd timer only calls borgmatic. It dumps databases into the backup (PostgreSQL, MySQL, MariaDB, MongoDB, SQLite, InfluxDB, OpenLDAP), can snapshot ZFS, Btrfs and LVM first, and reports each run to Healthchecks, Uptime Kuma, Cronitor, PagerDuty, ntfy, Apprise, Sentry and others. Credentials can come from systemd, container secrets, KeePassXC, the 1Password CLI or files. GPL-3.0-or-later, developed on the project's own forge with a read-only GitHub mirror.
Ways to install
On your own server
Package managers
Problems it solves
- run Borg backups from a config file instead of a pile of shell scripts and cron lines
- dump my Postgres and MySQL databases into the nightly server backup automatically
- back up a server to two different remote repositories with the same settings
- ping Healthchecks or Uptime Kuma when my nightly backup succeeds or fails
- get a push notification when a server backup fails
- snapshot ZFS or Btrfs before backing up so files are consistent
- check backup repository consistency on a schedule, not every night
- keep 7 daily, 4 weekly and 6 monthly archives and prune the rest automatically
- back up Docker container data on my home server with database dumps included
- read the backup passphrase from a secrets manager instead of a plain config file
- run commands before and after each backup, like stopping a service
Features
- one YAML file for sources, repositories, retention, checks, hooks and monitoring
- multiple labelled local and remote repositories
- database dumps: PostgreSQL, MySQL, MariaDB, MongoDB, SQLite, InfluxDB and OpenLDAP
- ZFS, Btrfs and LVM snapshots and tarball sources
- monitoring: Healthchecks, Uptime Kuma, Cronitor, PagerDuty, Pushover, ntfy, Loki, Apprise, Zabbix, Sentry and more
- retention by daily, weekly, monthly and yearly counts
- repository and archive consistency checks with configurable frequency
- credentials from systemd, Docker or Podman secrets, KeePassXC, the 1Password CLI or files
- custom commands before and after actions
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what borgmatic does.
- autorestic Config driven, easy backup cli for restic
- resticprofile Configuration profiles manager for restic backup
- Vorta Desktop Backup Client for Borg Backup
- Backrest Backrest is a web UI and orchestrator for restic backup.
- Zerobyte Backup automation for self-hosters, built on top of restic
- WAL-G Archival and restoration for databases in the cloud
