aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-13 14:01:42 +0000
committertv <tv@krebsco.de>2026-11-13 15:07:47 +0100
commite582eaa69c5f2d79c9b43424a5b94eb7826f37fb (patch)
treee19c3fa0144883a861c35fb8f9a387de1455a2f6 /pkgs/populate
parentafdb3ee5fe6e6ce2447f4838ca88108525b0ee4b (diff)
populate: omit the times of directories and symlinks
rsync sets the modification time of each directory whose contents change, and logs a line for it. Nothing relies on these times, nor on the times of symlinks, so --omit-dir-times and --omit-link-times leave them alone, and the log lists only what got transferred or deleted.
Diffstat (limited to 'pkgs/populate')
-rw-r--r--pkgs/populate/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/populate/default.nix b/pkgs/populate/default.nix
index 1787b65..05fb581 100644
--- a/pkgs/populate/default.nix
+++ b/pkgs/populate/default.nix
@@ -1398,6 +1398,10 @@ let
--itemize-changes \
--out-format=${quote "%i %n%L %'''b/%'''l"} \
--info=backup,del,copy,misc,mount,name,nonreg,remove,skip,symsafe \
+ `# Nothing relies on the times of directories and symlinks, and` \
+ `# keeping them would log a line for each directory changed.` \
+ --omit-dir-times \
+ --omit-link-times \
${rsyncFilterArgs config} \
-rlptD \
${optionalString config.deleteExcluded /* sh */ "--delete-excluded"} \