Locations
Options
Exclude

Excluding files

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

The flags are taken straight from the restic cli exclude rules (opens in a new tab) so you can use any flag used there.

locations:
  my-location:
    from: /data
    to: my-backend
    options:
      backup:
        exclude:
          - '*.nope'
          - '*.abc'
        exclude-file: .gitignore