Package: rsync Version: 3.2.3-4+deb11u1 Severity: normal X-Debbugs-Cc: debbug.rs...@sideload.33mail.com
The following simplified command was used to backup a whole drive: $ rsync -vahHAXS --out-format='%i %n%L %P' --delete --relative --numeric-ids --prune-empty-dirs --dry-run\ --exclude '/proc/'\ --exclude '/dev/'\ --exclude '/sys/'\ --exclude '/run/'\ --exclude '/mnt/'\ --exclude '/tmp/'\ / /mnt/backup/ The --out-format supplied above is essentially the same as the -i option but with “ %P” appended, which is documented in the rsyncd.conf manpage as follows: %P the module path This term “module” is non-intuitive and the first occurance of the word in the rsync manpage is unexplained (which should be fixed.. the first use of a term like that should be explained on the spot). It’s explained further down on the manpage. In any case, I just wanted to see what %P would show because there seems to be no mechanism to print the filename on the *receiving* destination side (%f is the long form of the sender side, and %n is a short form [apparently on the sender side though this is not specified and thus should be clarified]). I ultimately need to troubleshoot a problem of files being dumped one directory level higher than expected on the receiving side. The output looks like this: ===8<---------------------------------------- … >f+++++++++ /home/user/foo.txt %P … ===8<---------------------------------------- So %P is being printed literally. In summary, these are the bugs: * --out-format='%i %n%L %P' results in %P being printed literally. * “module” is mentioned on the rsync man page before it’s defined. * %n on the rsyncd.conf manpage omits sender/receiver. * Neither manpage states how to print the full *receiving* side filename. -- System Information: Debian Release: 11.5 APT prefers oldstable-updates APT policy: (990, 'oldstable-updates'), (990, 'oldstable-security'), (990, 'testing'), (990, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-19-amd64 (SMP w/2 CPU threads) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages rsync depends on: ii init-system-helpers 1.60 ii libacl1 2.2.53-10 ii libc6 2.31-13+deb11u5 ii liblz4-1 1.9.3-2 ii libpopt0 1.18-2 ii libssl1.1 1.1.1n-0+deb11u3 ii libxxhash0 0.8.0-2 ii libzstd1 1.4.8+dfsg-2.1 ii lsb-base 11.1.0 ii zlib1g 1:1.2.11.dfsg-2+deb11u2 rsync recommends no packages. Versions of packages rsync suggests: ii openssh-client 1:8.4p1-5+deb11u1 ii openssh-server 1:8.4p1-5+deb11u1 ii python3 3.9.2-3 -- no debconf information