MyNixOS website logo
option

services.restic.backups.<name>.exclude

Patterns to exclude when backing up. See https://restic.readthedocs.io/en/stable/040_backup.html#excluding-files for details on syntax.

This option is only supported on linux.

Declarations
Type
list of string
Default
[ ]
Example
[
  "/var/cache"
  "/home/*/.cache"
  ".git"
]