autorestic/docs/pages/cli/exec.md

14 lines
536 B
Markdown
Raw Normal View History

2020-05-17 14:52:30 +02:00
# Exec
```bash
autorestic exec [-b, --backend] [-a, --all] <command> -- [native options]
```
2021-05-01 15:15:44 +02: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 14:52:30 +02:00
```bash
2021-04-27 18:38:51 +02:00
autorestic exec -av -- snapshots
2020-05-17 14:52:30 +02:00
```
2020-11-13 15:48:20 +01: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.