Number of files transferred

This is a discussion on Number of files transferred within the Rsync forums, part of the Networking and Network Related category; Hello everybody, I'm using rsync (debian 3.0.2-1) to test my pet projects for correctness; but now ...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-15-2008
Ph. Marek
 
Posts: n/a
Default Number of files transferred

Hello everybody,

I'm using rsync (debian 3.0.2-1) to test my pet projects for correctness; but
now I've come across a bug (?) in rsync - it doesn't count transferred links,
ie. "Number of files transferred:" is wrong.

See:

# mkdir a b
# ln -s /bin/ls a/link ; touch b/link
# ls -la a/* b/*
lrwxrwxrwx 1 flip flip 7 15. Apr 06:53 a/link -> /bin/ls
-rw-r--r-- 1 flip flip 0 15. Apr 06:53 b/link

Now a test run shows that it'd send it, but doesn't count:
# rsync -a -v --stats a/ b/ -n
sending incremental file list
link -> /bin/ls

Number of files: 2
Number of files transferred: 0
Total file size: 7 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 51
File list generation time: 0.005 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 63
Total bytes received: 15

sent 63 bytes received 15 bytes 156.00 bytes/sec
total size is 7 speedup is 0.09 (DRY RUN)

Neither does a real run:
# rsync -a -v --stats a/ b/
sending incremental file list
link -> /bin/ls

Number of files: 2
Number of files transferred: 0
Total file size: 7 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 51
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 63
Total bytes received: 15

sent 63 bytes received 15 bytes 156.00 bytes/sec
total size is 7 speedup is 0.09

But the symlink was sent:
# ls -la a/* b/*
lrwxrwxrwx 1 flip flip 7 15. Apr 06:53 a/link -> /bin/ls
lrwxrwxrwx 1 flip flip 7 15. Apr 06:53 b/link -> /bin/ls


Now I'd like to ask whether that's a policy change (ie. will stay so), or if
it's just a bug - in the first case I have to rewrite my test scripts, to
test for changes in some other way.


Thank you.


Regards,

Phil
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:07 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0