Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
restic Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# restic
> A fast, secure and secure backup program.
> More information: <https://restic.net>.
- Initialize a backup repository in the specified local directory:
`restic init --repo {{path/to/repository}}`
- Backup a directory to the repository:
`restic --repo {{path/to/repository}} backup {{path/to/directory}}`
- Show backup snapshots currently stored in the repository:
`restic --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}}`
- 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}}`
- Clean up the repository and keep only the most recent snapshot of each unique backup:
`restic forget --keep-last 1 --prune`