mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 12:35:24 +02:00
restic: add page (#1943)
This commit is contained in:
parent
f83faa3a3a
commit
6bbced900c
1 changed files with 23 additions and 0 deletions
23
pages/common/restic.md
Normal file
23
pages/common/restic.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# restic
|
||||
|
||||
> Fast, secure, efficient backup program.
|
||||
|
||||
- Initialize a backup repository in the specified local directory:
|
||||
|
||||
`restic init -r {{path/to/repository}}`
|
||||
|
||||
- Backup folder "my_folder" to the repository:
|
||||
|
||||
`restic -r {{path/to/repository}} backup {{path/to/my_folder}}`
|
||||
|
||||
- Show backup snapshots currently stored in the repository:
|
||||
|
||||
`restic -r {{path/to/repository}} snapshots`
|
||||
|
||||
- Restore a specific backup snapshot to a target directory:
|
||||
|
||||
`restic -r {{path/to/repository}} restore {{snapshot_id}} {{path/to/target}}`
|
||||
|
||||
- Clean up the repository and keep only the most recent snapshot of each unique backup:
|
||||
|
||||
`restic forget --keep-last 1 --prune`
|
Loading…
Add table
Reference in a new issue