dotfiles/restic-cheatsheet.org

529 B

Restic - backups

https://restic.readthedocs.io/en/stable/

init repo
restic init --repo <path>
backup
restic -r <path> --verbose backup <path>
restore
restic -r <path> restore <ID/latest> --target /tmp/restore-work
restore latest via path
restic -r <path> restore latest --path "somepath"
list snapshots
restic -r <path> snapshots
copy snapshots between repos

with filtering

  restic -r <sourcerepo> copy --repo2 <targetrepo> --path <path> <ID/latest>