1
0

modules/backup: allow exclusion of paths

This commit is contained in:
clerie 2023-06-20 20:35:37 +02:00
parent 5ef293448d
commit 26f05a217b

View File

@ -43,7 +43,7 @@ let
restic snapshots || restic init restic snapshots || restic init
restic backup ${escapeShellArgs jobOptions.paths} restic backup ${optionalString (jobOptions.exclude != []) (pkgs.writeText "clerie-backup-${jobName}-${targetName}-excludes" (concatStringsSep "\n" jobOptions.exclude))} ${escapeShellArgs jobOptions.paths}
restic check restic check
@ -96,6 +96,10 @@ let
paths = mkOption { paths = mkOption {
type = with types; listOf str; type = with types; listOf str;
}; };
exclude = mkOption {
type = with types; listOf str;
default = [];
};
}; };
}; };
in in