modules/backup: allow exclusion of paths
This commit is contained in:
parent
5ef293448d
commit
26f05a217b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user