Linux/Restic: Difference between revisions

From Wiki
No edit summary
mNo edit summary
Line 24: Line 24:
</pre></blockquote>
</pre></blockquote>


== speed up ==
* restic + backblaze: --fast-list




[[Category:Linux/Services]]
[[Category:Linux/Services]]
[[Category:Linux]]
[[Category:Linux]]

Revision as of 12:12, 28 October 2021

Create repository

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

Backblaze

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

Backup

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

restic --repo /srv/restic-repo backup ~/work --exclude="*.c" --exclude-file=excludes.txt   
restic -r /srv/restic-repo backup --files-from /tmp/files_to_backup

Restoring


speed up

  • restic + backblaze: --fast-list