Zum Inhalt

HOWTO - Databackup

Using restic restic.readthedocs.io/en/stable

Init repo

restic init --repo /src/restic-repo 

Working with snapshots

Display repositories

restic -r /run/media/marco/restic_repo_acm/legion5/ snapshots
restic -r /run/media/marco/acm_rsn snapshots

Backing up

restic -r /run/media/marco/restic_repo_acm/legion5/ --verbose backup ~/Dokumente/ restic -r /run/media/marco/restic_repo_acm/legion5/ --verbose backup ~/Bilder/ restic -r /run/media/marco/restic_repo_acm/legion5/ --verbose backup ~/Steuerfälle/ restic -r /run/media/marco/restic_repo_acm/legion5/ --verbose backup ~/workspace/

add --exclude-file=~/XYZ/exclude.restic

Backing up supernote (usb32:acm_rsn)

// cd shell to Supernote
restic -r /run/media/marco/acm_rsn --verbose backup . Document
restic -r /run/media/marco/acm_rsn --verbose backup . Note

Restoring from backup

Restoring from a snapshot

restic -r /run/media/marco/restic_repo_acm/legion5/ restore 7d54365d --target ~/Dokumente