MyNixOS website logo
option

services.borgbackup.jobs.<name>.patterns

Include/exclude paths matching the given patterns. The first matching patterns is used, so if an include pattern (prefix +) matches before an exclude pattern (prefix -), the file is backed up. See borg help patterns for pattern syntax.

Declarations
Type
list of string
Default
[ ]
Example
[
  "+ /home/susan"
  "- /home/*"
]