Add generalised version of commands

This commit is contained in:
RealStickman 2021-02-22 22:08:21 +01:00
parent 71cc6b1327
commit 3c0ca9c309

View File

@ -25,6 +25,29 @@ export B2_ACCOUNT_ID=
export B2_ACCOUNT_KEY= export B2_ACCOUNT_KEY=
``` ```
### Generalised version
#### Initialise repository
`restic -r b2:(bucket):(path) init`
#### Create backup
`restic -r b2:(bucket):(path) backup --verbose "(path)" --exclude-file=(exclude file)`
#### Show snapshots
`restic -r b2:(bucket):(path) snapshots`
#### Restore snapshot
`restic -r b2:(bucket):(path) restore --target "(path)" (snapshot)`
#### Remove Snapshots
Only keep last X snapshots. Use "-n" to do a dry run
Does not remove data, just links
`restic -r b2:(bucket):(path) forget -l (X)`
Clean up unreferenced data. "-n" for dry run
`restic -r b2:(bucket):(path) prune`
### arco-pc-backup home ### arco-pc-backup home
```bash ```bash
restic -r b2:arco-pc-backup:/home/marc init restic -r b2:arco-pc-backup:/home/marc init