autorestic/docs/cli/exec.md

16 lines
463 B
Markdown
Raw Normal View History

2020-05-17 12:52:30 +00:00
# Exec
```bash
autorestic exec [-b, --backend] [-a, --all] <command> -- [native options]
```
This is avery handy command which enables you to run any native restic command on desired backends. An example would be listing all the snapshots of all your backends:
```bash
autorestic exec -a -- snapshots
```
2020-11-13 14:48:20 +00:00
With `exec` you can basically run every cli command that you would be able to run with the restic cli. It only pre-fills path, key, etc.
2020-05-17 12:52:30 +00:00
> :ToCPrevNext