mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 06:00:35 +00:00
Update cheatsheets
This commit is contained in:
12
tldr/restic
12
tldr/restic
@@ -6,27 +6,27 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# restic
|
||||
|
||||
> A fast, secure and secure backup program.
|
||||
> More information: <https://restic.net>.
|
||||
> More information: <https://restic.readthedocs.io/en/stable/manual_rest.html#usage-help>.
|
||||
|
||||
- Initialize a backup repository in the specified local directory:
|
||||
|
||||
`restic init --repo {{path/to/repository}}`
|
||||
`restic init {{[-r|--repo]}} {{path/to/repository}}`
|
||||
|
||||
- Backup a directory to the repository:
|
||||
|
||||
`restic --repo {{path/to/repository}} backup {{path/to/directory}}`
|
||||
`restic {{[-r|--repo]}} {{path/to/repository}} backup {{path/to/directory}}`
|
||||
|
||||
- Show backup snapshots currently stored in the repository:
|
||||
|
||||
`restic --repo {{path/to/repository}} snapshots`
|
||||
`restic {{[-r|--repo]}} {{path/to/repository}} snapshots`
|
||||
|
||||
- Restore a specific backup snapshot to a target directory:
|
||||
|
||||
`restic --repo {{path/to/repository}} restore {{latest|snapshot_id}} --target {{path/to/target}}`
|
||||
`restic {{[-r|--repo]}} {{path/to/repository}} restore {{latest|snapshot_id}} --target {{path/to/target}}`
|
||||
|
||||
- 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}}`
|
||||
`restic {{[-r|--repo]}} {{path/to/repository}} restore {{snapshot_id}} --target {{path/to/target}} --include {{path/to/restore}}`
|
||||
|
||||
- Clean up the repository and keep only the most recent snapshot of each unique backup:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user