MyNixOS website logo
option

services.borgbackup.jobs.<name>.preHook

Shell commands to run before the backup. This can for example be used to mount file systems.

Declarations
Type
strings concatenated with "\n"
Default
""
Example
''
  # To add excluded paths at runtime
  extraCreateArgs="$extraCreateArgs --exclude /some/path"
''