autorestic/docs/markdown/cli/exec.md

16 lines
552 B
Markdown
Raw Permalink Normal View History

2020-05-17 12:52:30 +00:00
# Exec
```bash
autorestic exec [-b, --backend] [-a, --all] <command> -- [native options]
```
2021-05-01 13:15:44 +00:00
This is a very handy command which enables you to run any native restic command on desired backends. Generally you will want to include the verbose flag `-v, --verbose` to see the output. An example would be listing all the snapshots of all your backends:
2020-05-17 12:52:30 +00:00
```bash
2021-04-27 16:38:51 +00:00
autorestic exec -av -- snapshots
2020-05-17 12:52:30 +00:00
```
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