autorestic/docs/markdown/examples.md

18 lines
493 B
Markdown
Raw Normal View History

2020-05-17 12:52:30 +00:00
# 🐣 Examples
2021-04-15 22:26:57 +00:00
## List all the snapshots for all the backends
2020-05-17 12:52:30 +00:00
```bash
2020-11-13 14:48:20 +00:00
autorestic exec -a -- snapshots
2020-05-17 12:52:30 +00:00
```
2021-04-15 22:26:57 +00:00
## Unlock a locked repository
2020-05-17 12:52:30 +00:00
2021-04-15 22:26:57 +00:00
This can come in handy if a backup process crashed or if it was accidentally cancelled. Then the repository would still be locked without an actual process using it. Only do this if you know what you are sure no other process is actually reading/writing to the repository of course.
2020-05-17 12:52:30 +00:00
```bash
2020-11-13 14:48:20 +00:00
autorestic exec -b my-backend -- unlock
2020-05-17 12:52:30 +00:00
```
> :ToCPrevNext