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.
19 lines
517 B
19 lines
517 B
5 years ago
|
# Excluding files
|
||
|
|
||
4 years ago
|
If you want to exclude certain files or folders it done easily by specifying the right flags in the location you desire to filter.
|
||
5 years ago
|
|
||
|
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
|
||
|
```
|