LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 12-02-2004, 02:44 AM   #1
microtim
LQ Newbie
 
Registered: Mar 2003
Location: Cambridge, M
Posts: 16

Rep: Reputation: 0
performance issue: rsync sends existing files


I've read that rsync copies only files that have been changed but I have had no success taking advantage of this feature. Instead, rsync always copies every file whether or not it already exists. For example, I have a bunch of avi files. I run...

% rsync -avz /vidz uid@dest:/vidz

This copies all files to the destination machine. Then I run that exact same command. The second run takes just as long as the first run.

The owner of and permissions of the files are exactly the same on both the source and destination. I don't understand why rsync determines that the entire file should be sent.

Below is my rsyncd.conf. Can anyone help? Thanks in advance. -Tim

log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock

[bling]
path = /home/microtim/bling
comment = Laptop backup
uid = microtim
gid = users
read only = no
list = yes
secrets file = /etc/rsync/rsyncd.scrt
auth users = microtim

[Pictures]
path = /home/microtim/Pictures
comment = My Pictures
uid = microtim
gid = users
read only = no
list = yes
secrets file = /etc/rsync/rsyncd.scrt
auth users = microtim
 
Old 12-02-2004, 03:27 AM   #2
microtim
LQ Newbie
 
Registered: Mar 2003
Location: Cambridge, M
Posts: 16

Original Poster
Rep: Reputation: 0
problem solved !! [6 months later]

totally friggin weird!! On the source-end, I set all files to be readable (744) and that solved the problem!! So if I rsync that .avi file once, it flies right thru the second execution. Sweet.

This is how I figured out the problem. Upon closer examination, I found that the destination files all contained a timestamp of whatever `date` prints outs, or today. For a mirroring tool like rsync, this didn't make sense. So set readability for a sample file and as a result, the timestamp on the destination reflected the timestamp on the source. And on the 2nd execution, rsync was able to determine that the file should not be sent.

As for why this happens, I have no clue!! I'm so curious because I spent 6 disappointing months scratching my head. -Tim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync files accessed under 30 days 0ddba11 Linux - General 3 11-03-2005 07:59 AM
RSYNC and dot files Buto Linux - General 1 09-22-2005 03:39 PM
rsync skipping files s_siouris Linux - Software 4 04-06-2005 12:00 PM
Why existing .so files cannot be found? jiapei100 Linux - General 4 03-13-2005 05:23 AM
raid performance issue anoop_chandran Linux - General 1 06-06-2003 05:04 AM


All times are GMT -5. The time now is 02:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration