# Autorestic | Excluding files

Star
Created With

# linkExcluding files

If you want to exclude certain files or folders it done easily by specifiyng the right flags in the location you desire to filter.

The flags are taken straight from the restic cli exclude rules so you can use any flag used there.

    1locations:
    2  my-location:
    3    from: /data
    4    to: my-backend
    5    options:
    6      backup:
    7        exclude:
    8          - '*.nope'
    9          - '*.abc'
    10        exclude-file: .gitignore

Excluding files