mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-04-02 15:48:14 +00:00
Restic supports --dry-run for backups since 0.13.0 [1] and this adds
support for that.
[1] bc97a3d1f9
27 lines
590 B
Markdown
27 lines
590 B
Markdown
# Backup
|
|
|
|
```bash
|
|
autorestic backup [-l, --location] [-a, --all] [--dry-run]
|
|
```
|
|
|
|
Performs a backup of all locations if the `-a` flag is passed. To only backup some locations pass one or more `-l` or `--location` flags.
|
|
|
|
The `--dry-run` flag will do a dry run showing what would have been deleted, but won't touch the actual data.
|
|
|
|
|
|
```bash
|
|
# All
|
|
autorestic backup -a
|
|
|
|
# Some
|
|
autorestic backup -l foo -l bar
|
|
```
|
|
|
|
## Specific location
|
|
|
|
`autorestic` also allows selecting specific backends for a location with the `location@backend` syntax.
|
|
|
|
```bash
|
|
autorestic backup -l location@backend
|
|
```
|