# borgmatic

> Simple, configuration-driven backup software for servers and workstations

Source: https://talira.ai/catalog/borgmatic-g1r4b18c
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [devops / backup](https://talira.ai/categories/devops/backup)
- Platforms: linux, cli[^4]
- Licence: GPL-3.0-or-later[^4][^5]
- Pricing: Free and open source[^4]
- Pricing notes: Free; you provide the Borg repositories.
- Free tier: yes[^4]
- Self-hostable: yes[^4]
- Creator: Dan Helfman

borgmatic runs [BorgBackup](https://talira.ai/catalog/borgbackup-97vvc3hh.md) 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](https://talira.ai/catalog/postgresql-cm55wcnd.md), [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md), [MariaDB](https://talira.ai/catalog/mariadb-server-bxse0j6g.md), [MongoDB](https://talira.ai/catalog/mongodb-bnayk648.md), [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md), [InfluxDB](https://talira.ai/catalog/influxdb-5xczk9np.md), [OpenLDAP](https://talira.ai/catalog/openldap-nn0rt7rs.md)), can snapshot ZFS, Btrfs and LVM first, and reports each run to [Healthchecks](https://talira.ai/catalog/healthchecks-io-6z95c6zf.md), [Uptime Kuma](https://talira.ai/catalog/uptime-kuma-0qew7wvd.md), [Cronitor](https://talira.ai/catalog/cronitor-xa1tkyq4.md), [PagerDuty](https://talira.ai/catalog/pagerduty-btddhpk1.md), [ntfy](https://talira.ai/catalog/ntfy-h3qvjgpy.md), [Apprise](https://talira.ai/catalog/apprise-xh2zb8pb.md), [Sentry](https://talira.ai/catalog/sentry-d969wppj.md) and others. Credentials can come from systemd, container secrets, [KeePassXC](https://talira.ai/catalog/keepassxc-pj9vc0q3.md), the [1Password CLI](https://talira.ai/catalog/1password-cli-65h56fd6.md) or files. GPL-3.0-or-later, developed on the project's own forge with a read-only [GitHub](https://talira.ai/catalog/github-ppcgj756.md) mirror.

## Links

- Website: https://torsion.org/borgmatic/
- GitHub: https://github.com/borgmatic-collective/borgmatic
- Docs: https://torsion.org/borgmatic/reference/configuration/

## Ways to install

### On your own server

- [Unraid Community Applications](https://talira.ai/catalog/unraid-community-applications-9jw5an1a.md): <https://ca.unraid.net/apps/borgmatic-1trt3qf1fv2sdn>[^1]

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/borgmatic>[^2]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/borgmatic>[^3]

## 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

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Dan Helfman

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [BorgBackup](https://talira.ai/catalog/borgbackup-97vvc3hh.md)

## Alternatives

- [autorestic](https://talira.ai/catalog/autorestic-brznd2gg.md): Config driven, easy backup cli for restic
- [resticprofile](https://talira.ai/catalog/resticprofile-hf7n6mj8.md): Configuration profiles manager for restic backup
- [Vorta](https://talira.ai/catalog/vorta-2z3yxrm0.md): Desktop Backup Client for Borg Backup
- [Backrest](https://talira.ai/catalog/backrest-8ac5rjry.md): Backrest is a web UI and orchestrator for restic backup.
- [Zerobyte](https://talira.ai/catalog/zerobyte-jrkapw48.md): Backup automation for self-hosters, built on top of restic
- [WAL-G](https://talira.ai/catalog/wal-g-t3wg850k.md): Archival and restoration for databases in the cloud

## Sources

[^1]: https://ca.unraid.net/api/apps/borgmatic-1trt3qf1fv2sdn (checked 20 Nov 2026)
[^2]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^3]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^4]: https://torsion.org/borgmatic/ (checked 20 Nov 2026)
[^5]: https://pypi.org/project/borgmatic/ (checked 20 Nov 2026)
