You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
autorestic/docs/markdown/location/overview.md

35 lines
954 B

5 years ago
# 🗂 Locations
Locations can be seen as the input to the backup process. Generally this is simply a folder.
The paths can be relative from the config file. A location can have multiple backends, so that the data is secured across multiple servers.
Note: names of locations MUST be lower case!
5 years ago
```yaml | .autorestic.yml
3 years ago
version: 2
5 years ago
locations:
my-location-name:
from: path/to/backup
3 years ago
# Or multiple
# from:
# - /a
# - /b
5 years ago
to:
- name-of-backend
- also-backup-to-this-backend
```
## `from`
3 years ago
This is the source of the location. Can be an `array` for multiple sources.
5 years ago
#### How are paths resolved?
Paths can be absolute or relative. If relative they are resolved relative to the location of the config file. Tilde `~` paths are also supported for home folder resolution.
## `to`
4 years ago
This is either a single backend or an array of backends. The backends have to be configured in the same config file.
5 years ago
> :ToCPrevNext