From a0238c05909757ec44015fafc786284d4dbf329e Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 12 Nov 2026 11:09:42 +0000 Subject: 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. --- pkgs/populate/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/populate') 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 \ -- cgit v1.3.1