Restic is a backup program that is designed to be easy to use, secure, and fast. It supports various backends for storing data, including local filesystems, SFTP servers, and cloud storage providers.
Restic can be installed via package managers on most Linux distributions, Homebrew on macOS, or directly from the official website.
A repository is where your backups are stored. It can be local (e.g., an external hard drive) or remote (e.g., cloud storage).
Snapshots are individual backups at a point in time, allowing you to restore data to its state at the moment the snapshot was taken.
Restic encrypts your data before it leaves your computer, ensuring that it's secure at rest and in transit.
restic -r /path/to/repository init
restic -r /path/to/repository backup /path/to/data
Backups can be automated using cron jobs on Unix-like systems or Task Scheduler on Windows.
restic -r /path/to/repository snapshots
restic -r /path/to/repository restore <snapshot_id> --target /path/to/restore
Restic can remove old snapshots according to various retention policies:
restic -r /path/to/repository forget --keep-daily=7 --keep-weekly=4 --keep-monthly=6 --prune
Restic allows you to mount a repository to browse its contents:
restic -r /path/to/repository mount /path/to/mountpoint
Restic supports multiple storage backends for flexibility. Configure each repository with a different backend to suit your needs, such as local disks, SFTP, AWS S3, Azure Blob Storage, and Google Cloud Storage.