aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-12 11:09:42 +0000
committertv <tv@krebsco.de>2026-11-12 11:09:42 +0000
commita0238c05909757ec44015fafc786284d4dbf329e (patch)
tree42c934f6cd7b1b9c196878f4e3517d8db4ce2ad2 /pkgs/populate
parent74fb1d515e6879922bc65fab4c7099dde9dd92e5 (diff)
populate: log what rsync changes about each item
rsync logged only the names of the items it transferred. It logs what changed about each item now (--itemize-changes), along with its size as transferred and in total.
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 f3cf925..992ac90 100644
--- a/pkgs/populate/default.nix
+++ b/pkgs/populate/default.nix
@@ -753,6 +753,8 @@ let
if test -d "$source_path"; then
source_path=$source_path/
fi
+ # Each item gets logged with what changed about it, and its size, as
+ # transferred and in total.
${rsync}/bin/rsync \
${optionalString config.useChecksum /* sh */ "--checksum"} \
${optionalString target.sudo /* sh */ "--rsync-path=\"sudo rsync\""} \
@@ -763,6 +765,8 @@ let
(filter: /* sh */ "--${filter.type} ${quote filter.pattern}")
config.filters} \
-e ${quote (ssh' target)} \
+ --itemize-changes \
+ --out-format=${quote "%i %n%L %'''b/%'''l"} \
--info=backup,del,copy,misc,mount,name,nonreg,remove,skip,symsafe \
${optionalString (config.filterFiles or true) "-F"} \
-rlptD \