talira

resticprofile

Configuration profiles manager for restic backup

open sourceGPL-3.0-onlyself-hostablefree

resticprofile gives restic the configuration file it lacks: profiles in TOML, YAML, JSON or HCL hold each repository's options, passwords and environment, can inherit from each other and run in groups. It schedules backups, retention and checks through systemd, cron, launchd or the Windows Task Scheduler, runs commands or HTTP hooks before and after jobs and on errors, and writes status files and Prometheus metrics for monitoring. Other options skip scheduled jobs on battery, stop the machine sleeping mid-backup, check free memory first and clear stale locks. It's written in Go, GPL-3.0, with binaries for Linux, macOS, Windows and the BSDs and a Docker image that includes rclone.

Ways to install

Problems it solves

  • keep all my restic repositories, passwords and options in one config file instead of env vars and scripts
  • schedule restic backups with systemd timers or launchd without writing unit files by hand
  • schedule restic backups on a Windows PC with Task Scheduler
  • run forget and check automatically after every backup
  • export backup metrics to Prometheus so I get alerted when a backup is stale
  • ping a healthcheck URL when a backup starts, succeeds or fails
  • skip the scheduled backup when my laptop is running on battery
  • stop my laptop going to sleep in the middle of a backup
  • share common settings between several backup profiles instead of copying them
  • stream a database dump straight into a backup from stdin
  • clear stale locks left behind by a crashed backup automatically
  • run a group of backup profiles one after another
  • lower the CPU and disk priority of backups so the machine stays responsive
  • copy snapshots to a second repository for an offsite copy
  • send backup logs to syslog on my servers

Features

  • multiple profiles in one file, with inheritance and templates
  • TOML, YAML, JSON and HCL configuration
  • groups of profiles run in sequence, and schedulable groups (configuration v2)
  • schedules backups, retention and checks with systemd, cron, launchd or Windows Task Scheduler
  • forget and check before or after backups
  • shell commands and HTTP hooks before and after jobs and on errors
  • status file and Prometheus metrics export or push gateway
  • backups streamed from stdin
  • process priority settings on Windows, Unix and Linux
  • free memory check before a backup, skip on battery and idle-sleep prevention
View 4 more
  • clears stale locks, generates random restic keys, initializes a secondary repository for copy
  • logs to syslog
  • binaries for Linux, macOS, Windows, FreeBSD, OpenBSD, NetBSD and Solaris; Scoop and winget on Windows
  • Docker image for amd64 and arm64 with rclone, rebuilt weekly

Capabilities

Has a command line toolplan not known
Sends webhooksplan not known

Alternatives

The same job

These do what resticprofile does.

  1. Backrest Backrest is a web UI and orchestrator for restic backup.
  2. autorestic Config driven, easy backup cli for restic
  3. Zerobyte Backup automation for self-hosters, built on top of restic
  4. borgmatic Simple, configuration-driven backup software for servers and workstations
  5. Kopia Fast and Secure Open-Source Backup Software
  6. restic Fast, secure, efficient backup program

Compare resticprofile with the top 3