restic

A backup program that aims to be fast, secure and efficient. More information: <https://restic.net>.

Install

All systems
curl cmd.cat/restic.sh
Debian Debian
apt-get install restic
Ubuntu
apt-get install restic
Arch Arch Linux
pacman -S restic
image/svg+xml Kali Linux
apt-get install restic
Fedora
dnf install restic
Windows (WSL2)
sudo apt-get update sudo apt-get install restic
OS X
brew install restic
Raspbian
apt-get install restic

A backup program that aims to be fast, secure and efficient. More information: <https://restic.net>.

  • Initialize a backup repository in the specified local directory:
    restic init --repo path/to/repository
  • Backup a directory to the repository:
    restic --repo path/to/repository backup path/to/directory
  • Show backup snapshots currently stored in the repository:
    restic --repo path/to/repository snapshots
  • Restore a specific backup snapshot to a target directory:
    restic --repo path/to/repository restore latest|snapshot_id --target path/to/target
  • Restore a specific path from a specific backup to a target directory:
    restic --repo path/to/repository restore snapshot_id --target path/to/target --include path/to/restore
  • Clean up the repository and keep only the most recent snapshot of each unique backup:
    restic forget --keep-last 1 --prune

© tl;dr; authors and contributors