Hello all,
I am using rsync 2.6.3 on RH 9 Linux systems. I think everytime I run the
rsync command, all the files get transferred even if they haven't changed.
Rsync is running as a daemon on my server. Below is the /etc/rsycnd.conf
from my server:
[ftpscript]
path=/home/gab/ftpscript
comment=My FtpScript
list=yes
On my client I use the following command:
/usr/local/bin/rsync --verbose --progress --stats --recursive --links
--perms --compress 10.X.X.X::ftpscript/ /home/g/test
I pasted output of my rsync command below. The FAQ mentioned people
thinking files were transferred every time when in reality only permissions
or group were being updated. When I compare the files on my client &
server, the permissions, owner & group are the same.
What am I missing? Why is every file being transferred every time?
Thanks!
GJ
output of rsync command:
receiving file list ...
8 files to consider
1.cpp
50 100% 48.83kB/s 0:00:00 (1, 25.0% of 8)
2.cpp
702 100% 685.55kB/s 0:00:00 (2, 37.5% of 8)
3.cpp
2211 100% 2.11MB/s 0:00:00 (3, 50.0% of 8)
4.cpp
3258 100% 3.11MB/s 0:00:00 (4, 62.5% of 8)
5.cpp
3723 100% 1.78MB/s 0:00:00 (5, 75.0% of 8)
6.cpp
1802 100% 879.88kB/s 0:00:00 (6, 87.5% of 8)
junk
0 100% 0.00kB/s 434:13:07 (7, 100.0% of 8)
Number of files: 8
Number of files transferred: 7
Total file size: 11746 bytes
Total transferred file size: 11746 bytes
Literal data: 0 bytes
Matched data: 11746 bytes
File list size: 116
Total bytes sent: 328
Total bytes received: 427
sent 328 bytes received 427 bytes 1510.00 bytes/sec
total size is 11746 speedup is 15.56
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
On Mon 10 Jan 2005, Gabby James wrote:> > On my client I use the following command: > /usr/local/bin/rsync --verbose --progress --stats --recursive --links > --perms --compress 10.X.X.X::ftpscript/ /home/g/testI would have expected to see the --times option also... Or just the -a option.> I pasted output of my rsync command below. The FAQ mentioned people > thinking files were transferred every time when in reality only permissions > or group were being updated. When I compare the files on my client & > server, the permissions, owner & group are the same. > > What am I missing? Why is every file being transferred every time?Are they actually? Check the ctime of the files before and after the transfer (ls -lc). Also, are any of the files (source or dest) hardlinked? Also, the files are pretty tiny, I wouldn't be surprised that transferring the files is more efficient than checking for changes :-) Paul Slootman
On Mon, Jan 10, 2005 at 08:23:25AM -0700, Gabby James wrote:> I am using rsync 2.6.3 on RH 9 Linux systems. I think everytime I run the > rsync command, all the files get transferred even if they haven't changed.If you don't use -t (--times) which is implied by -a (--archive), they all get updated (since the quick-check algorithm just compares the modify-time and the size of the file). However, only the checksum data gets tranferred during this process (so it is faster than a full transfer). See also -c (--checksum) -- an alternative to the default quick-check algorithm that doesn't require you to preserve each file's modify-time, but it does slow things down quite a bit. ..wayne..