Options (1)
-r, --repobooleanInitialize a backup repository in the specified local directory
Example:
restic init {{[-r|--repo]}} {{path/to/repository}}Examples (6)
Initialize a backup repository in the specified local directory
Backup a directory to the repository
restic [-r|--repo] path/to/repository backup path/to/directoryShow backup snapshots currently stored in the repository
restic [-r|--repo] path/to/repository snapshotsRestore a specific backup snapshot to a target directory
restic [-r|--repo] path/to/repository restore latest|snapshot_id --target path/to/targetRestore a specific path from a specific backup to a target directory
restic [-r|--repo] path/to/repository restore snapshot_id --target path/to/target --include path/to/restoreClean up the repository and keep only the most recent snapshot of each unique backup
restic forget --keep-last 1 --prunemade by @shridhargupta | data from tldr-pages