restic Command Examples

A fast, secure and secure backup program. More information: https://restic.net.

restic init --repo {{path/to/repository}}

restic --repo {{path/to/repository}} backup {{path/to/directory}}

restic --repo {{path/to/repository}} snapshots

restic --repo {{path/to/repository}} restore {{latest|snapshot_id}} --target {{path/to/target}}

restic --repo {{path/to/repository}} restore {{snapshot_id}} --target {{path/to/target}} --include {{path/to/restore}}

restic forget --keep-last 1 --prune