fix(restic): switch to fd to include empty paths
This commit is contained in:
parent
d979a126ab
commit
de264cde5a
|
@ -33,6 +33,7 @@ in {
|
|||
"/home/felschr/media"
|
||||
"/home/felschr/sync"
|
||||
"/home/felschr/keybase"
|
||||
"**/.git"
|
||||
];
|
||||
timerConfig.OnCalendar = "0/4:00:00";
|
||||
extraPruneOpts = [ "--keep-last 6" ];
|
||||
|
|
|
@ -32,10 +32,10 @@ in {
|
|||
ignoreFile = builtins.toFile "ignore"
|
||||
(foldl (a: b: a + "\n" + b) "" ignorePatterns);
|
||||
in ''
|
||||
${pkgs.ripgrep}/bin/rg \
|
||||
${pkgs.fd}/bin/fd \
|
||||
--hidden \
|
||||
--files ${files} \
|
||||
--ignore-file ${ignoreFile} \
|
||||
. ${files} \
|
||||
| sed "s/\[/\\\[/" | sed "s/\]/\\\]/"
|
||||
''
|
||||
else
|
||||
|
|
|
@ -26,6 +26,7 @@ in {
|
|||
"/home/*/.local/share/Trash"
|
||||
"/home/*/.cache"
|
||||
"/var/lib/jellyfin/transcodes"
|
||||
"**/.git"
|
||||
];
|
||||
timerConfig.OnCalendar = "0/4:00:00";
|
||||
extraPruneOpts = [ "--keep-last 6" ];
|
||||
|
|
Loading…
Reference in a new issue