Config driven, easy backup cli for restic
open sourceApache-2.0self-hostablefree
autorestic is a command-line wrapper for restic that describes backups in a YAML file instead of command-line flags: locations (folders or Docker volumes) and the backends each one goes to, so one location can back up to several destinations at once. Each location can have its own cron schedule, retention and pruning policy, exclude patterns and before and after hooks, and restic does the encrypted, incremental work underneath. The tested backends are local folders, Backblaze B2, S3 and MinIO, SFTP and restic's REST server. It's written in Go, Apache-2.0, and runs on Linux and macOS.
Ways to install
Package managers
Problems it solves
- back up several folders on my server to a local disk and Backblaze B2 from one config file
- restic's commands and environment variables are hard to keep straight across many backup jobs
- back up my Docker volumes and restore them on another host
- run each folder's backup on its own cron schedule without writing shell scripts
- keep 7 daily and 4 weekly restic snapshots per folder and prune the rest automatically
- stop a container before its data is backed up and start it again afterwards
- leave cache and node_modules folders out of my server backups
- send the same backup to S3, an SFTP box and a REST server
- do a dry run to see what tonight's backup would upload
- describe all my homelab backups in a YAML file I can keep in git
Features
- YAML configuration of locations and backends
- one location backed up to multiple backends
- snapshot retention policies and pruning
- before and after backup hooks
- exclude patterns and files
- cron schedules per location
- backup and restore of Docker volumes
- tested backends: local, Backblaze B2, S3 and MinIO, SFTP, restic REST server
- dry-run backups
- self-updating binary and generated shell completions for bash, zsh, fish and PowerShell
View 1 more
- installs with a script, Homebrew, Fedora's dnf, the AUR or a Docker image
Limitations
- Doesn't support Windows: it runs on Linux and macOS2
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what autorestic does.
- Zerobyte Backup automation for self-hosters, built on top of restic
- resticprofile Configuration profiles manager for restic backup
- borgmatic Simple, configuration-driven backup software for servers and workstations
- Backrest Backrest is a web UI and orchestrator for restic backup.
- Kopia Fast and Secure Open-Source Backup Software
- docker-volume-backup Backup Docker volumes locally or to any S3, WebDAV, Azure Blob Storage, Dropbox, Google Drive or SSH compatible storage
