Dear Maintainer, I using sshpass -p password rsync -vrz source1 source2 -e ssh user@ip:dest works but in the output of rsync "Number of deleted files:" is missed using rsync in tradition way: rsync source dest the output is correct thanks Pol
Hi, Please try to show *exact* commands with the corresponding output. Best case scenario is if you could present a script that reproduces the problem so that it takes the guesswork out of the equation for me. Thanks Paul
> Please try to show *exact* commands with the corresponding output. sshpass -p password rsync -vrz /mnt/data0 -e ssh user@ip:data0 Number of files: 1 (dir: 1) Number of created files: 0 Number of regular files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 35 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 74 Total bytes received: 53 sent 74 bytes received 53 bytes 254.00 bytes/sec total size is 0 speedup is 0.00 Output of rsync missed this line: "Number of deleted files: 0" Thanks Pol
give a script that reproduces the problem. thanks, Paul
--stats --delete --size-only -vrz "/data" -e ssh root@$IP:data/ 2> /tmp/rsync-error >> $EXTLOG cat $EXTLOG Number of files: 1 (dir: 1) Number of created files: 0 Number of regular files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 35 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 74 Total bytes received: 53 sent 74 bytes received 53 bytes 254.00 bytes/sec total size is 0 speedup is 0.00 Max
Unfortunately I still cannot reproduce this: $ mkdir /tmp/data $ sshpass -p $PASS rsync --timeout=30 --bwlimit=10 --log-file=/tmp/rsync-log --stats --delete --size-only -vrz /tmp/data -e ssh root@localhost:data/ 2> /tmp/rsync-error >> /tmp/rsync-stdout $ cat /tmp/rsync-stdout sending incremental file list created directory data data/ Number of files: 1 (dir: 1) Number of created files: 1 (dir: 1) Number of deleted files: 0 Number of regular files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 0 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 55 Total bytes received: 54 sent 55 bytes received 54 bytes 72.67 bytes/sec total size is 0 speedup is 0.00 Rerunning the command (to match your output of the directory already being created) gives: Number of files: 1 (dir: 1) Number of created files: 0 Number of deleted files: 0 Number of regular files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 0 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 52 Total bytes received: 28 sent 52 bytes received 28 bytes 160.00 bytes/sec total size is 0 speedup is 0.00 Does the stderr or the log-file contain anything relevant? Paul
no errors or warning :/ which version of rsync you used? seems that the problem is with Debian old stable I've to check it Max (sent from mobile)
My versions are basically the same as yours: base-files 10 init-system-helpers 1.49 libacl1:amd64 2.2.52-3+b1 libattr1:amd64 1:2.4.47-2+b2 libattr1:i386 1:2.4.47-2+b2 libc6:amd64 2.24-17 libc6:i386 2.24-17 libpopt0:amd64 1.16-10+b2 lsb-base 9.20161125 openssh-client 1:7.5p1-10 openssh-server 1:7.5p1-10 rsync 3.1.2-2 sshpass 1.06-1 Paul
what else can I do? I tried delete-during, delete-before, etc same problem Max
Ok, the problem happens only with sshdroid (android ssh server application). With other pc clients everything ok :) well, is it a bug of rsync or of sshdroid? thanks Max
You could try using strace on the rsync process to see if it actually does emit the missing line; if so, rsync can hardly be held to blame. It would be a curiously specific error in sshdroid though. Am I to understand that you are running rsync on an android system and connecting to it via this sshdroid? Might it then not be a problem in the rsync running on the android, that it does not pass this info? Please test it yourself with rsync running on debian at both ends, I'm confident that then there it no problem, and hence there's nothing Debian can do to fix this. Paul