Install the pre-compiled Restic binary.
curl --silent --location https://github.com/restic/restic/releases/download/v0.9.4/restic_0.9.4_linux_amd64.bz2 | bzip2 --decompress \
| sudo tee /usr/bin/restic > /dev/null && sudo chmod +x /usr/bin/restic
Backup:
source /etc/restic/config && sudo -E restic backup --option b2.connections=10 --exclude-caches --exclude-file /etc/restic/excludes.list /home /etc
Cleanup:
restic forget --prune --host "${HOSTNAME}" --keep-last 3 --keep-hourly 24 --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --keep-yearly 1