Skip to content

restic

Fast, secure, efficient backup program.

๐Ÿ›  Install

curl -fsSL https://installer.l.nicholaswilde.io/restic/restic! | bash
curl -fsSL https://installer.l.nicholaswilde.io/restic/restic! | sudo bash
brew install restic

โš™ Config

export RESTIC_REPOSITORY=/srv/restic-repo
export RESTIC_PASSWORD=some-strong-password

Tip

Great to add to your .bashrc files.

๐Ÿ“ Usage

Initialize the repository (first time only):

restic init

Create your first backup:

restic backup ~/work

You can list all the snapshots you created with:

restic snapshots

You can restore a backup by noting the snapshot ID you want and running:

restic restore --target /tmp/restore-work your-snapshot-ID

It is a good idea to periodically check your repositoryโ€™s metadata:

restic check
# or full data:
restic check --read-data

๐Ÿš€ Upgrade

restic self-update

๐Ÿ”— References