restic

restic

TLDR

Initialize a backup repository in the specified local directory

$ restic init --repo [path/to/repository]
copy

Backup a directory to the repository

$ restic --repo [path/to/repository] backup [path/to/directory]
copy

Show backup snapshots currently stored in the repository

$ restic --repo [path/to/repository] snapshots
copy

Restore a specific backup snapshot to a target directory

$ restic --repo [path/to/repository] restore [latest|snapshot_id] --target [path/to/target]
copy

Restore a specific path from a specific backup to a target directory

$ restic --repo [path/to/repository] restore [snapshot_id] --target [path/to/target] --include [path/to/restore]
copy

Clean up the repository and keep only the most recent snapshot of each unique backup

$ restic forget --keep-last 1 --prune
copy

Copied to clipboard
Dodo Farming