Bug 10409 - issue with "Number of deleted files"
issue with "Number of deleted files"
Status: RESOLVED INVALID
Product: rsync
Classification: Unclassified
Component: core
3.1.0
All Solaris
: P5 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-31 11:51 UTC by Irina
Modified: 2014-02-24 19:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Irina 2014-01-31 11:51:44 UTC
Hello,

I'm trying to rsync files between two servers(rsync is installed on both servers) with the command

/opt/swe/tools/ext/rsync-3.1.0/i386-solaris2.10/bin/rsync --rsync-path=/opt/alct/bin/rsync -e "ssh -l ****" --delete --delete-after --stats -uvazhiH  /opt/swe/install/tools/  1.0.0.0:/opt/swe/install/tools_freeware/
Password:

With the following output:

building file list ... done
.d..t...... ./
*deleting   file1
*deleting   file2.log
*deleting   file3

Number of files: 4 (reg: 3, dir: 1)
Number of created files: 0
Number of regular files transferred: 0
Total file size: 1.08M 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: 133
Total bytes received: 18

sent 133 bytes  received 18 bytes  33.56 bytes/sec
total size is 1.08M  speedup is 7,165.49

As you can see it doesn't display "Number of deleted files".
If I realize synchronization only on one server

 /opt/swe/tools/ext/rsync-3.1.0/i386-solaris2.10/bin/rsync -uvazhiH --delete --delete-after --stats  -e "ssh -l ****" /opt/swe/install/tools/ /opt/swe/install/files/

 the output is

 building file list ... done
.d..t...... ./
*deleting   file1.txt
*deleting   file2
*deleting   file3.log
*deleting   file4.txt
*deleting   file5.log
*deleting   file6
*deleting   file7

Number of files: 4 (reg: 3, dir: 1)
Number of created files: 0
Number of deleted files: 7 (reg: 7)
Number of regular files transferred: 0
Total file size: 1.08M 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: 125
Total bytes received: 18

sent 125 bytes  received 18 bytes  286.00 bytes/sec
total size is 1.08M  speedup is 7,566.36

Synchronization is performed correctly in both cases, but the output message in case of synchronizing files between two servers it`s wrong(doesn't display "Number of deleted files"). Kindly consider that it's a very important issue. Looking forward to any suggestion or advices.

Best Regards,
Irina CURERARU
Comment 1 Kevin Korb 2014-01-31 16:05:33 UTC
ssh user@1.0.0.0 /opt/alct/bin/rsync --version
If the remote version isn't also 3.1.0 then it does not have the #files deleted feature in --stats.  If rsync sees an older version on the remote then it acts like the older version to preserve compatibility.

Also btw, you can drop the entire -e "ssh -l username" and instead just use username@1.0.0.0:/opt/swe/install/tools_freeware/
Comment 2 Wayne Davison 2014-02-24 19:58:06 UTC
Yeah, rsync can't output that line if an older rsync is being used on one end of the transfer.  This is because the stats values being communicated from the generator -> sender -> receiver don't have that value in an older protocol.