autorestic/docs/pages/location/options/exclude.md

19 lines
517 B
Markdown
Raw Normal View History

2020-05-17 12:52:30 +00:00
# Excluding files
2021-04-21 07:34:01 +00:00
If you want to exclude certain files or folders it done easily by specifying the right flags in the location you desire to filter.
2020-05-17 12:52:30 +00:00
The flags are taken straight from the [restic cli exclude rules](https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files) so you can use any flag used there.
```yaml
locations:
my-location:
from: /data
to: my-backend
options:
backup:
exclude:
- '*.nope'
- '*.abc'
exclude-file: .gitignore
```