autorestic/docs/pages/cli/restore.md

18 lines
776 B
Markdown
Raw Permalink Normal View History

2020-05-17 12:52:30 +00:00
# Restore
```bash
2021-10-31 21:32:34 +00:00
autorestic restore [-l, --location] [--from backend] [--to <out dir>] [-f, --force] [snapshot]
2020-05-17 12:52:30 +00:00
```
2021-10-31 21:32:34 +00:00
This will restore the location to the selected target. If for one location there are more than one backends specified autorestic will take the first one. If no specific snapshot is specified `autorestic` will use `latest`.
2020-05-17 12:52:30 +00:00
2021-10-31 21:32:34 +00:00
If you are sure you can pass the `-f, --force` flag and the data will be overwritten in the destination. However note that this will overwrite all the data existent in the backup, not only the 1 file that is missing e.g.
2021-04-22 08:00:52 +00:00
2020-05-17 12:52:30 +00:00
## Example
```bash
autorestic restore -l home --from hdd --to /path/where/to/restore
```
This will restore the location `home` to the `/path/where/to/restore` folder and taking the data from the backend `hdd`