Linux/Restic

From Wiki

Create repository

restic init --repo /srv/restic-repo                      # local
restic init --repo sftp:user@host:/srv/restic-repo       # sftp
restic init --repo b2:bucketname:path/to/repo            # backblaze b2

Backblaze

export B2_ACCOUNT_ID=<MY_APPLICATION_KEY_ID>
export B2_ACCOUNT_KEY=<MY_APPLICATION_KEY>

Backup

restic backup --verbose --repo /srv/restic-repo ~/work

Restoring