Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > rsync plus smb:// does full copy every time

rsync plus smb:// does full copy every time
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2000
Location: flanders,nj,usa
Status: Offline
Reply With Quote
Jan 31, 2003, 12:54 PM
 
I use my TiBook at work, where we store shared files on the LAN. I have no trouble connecting to the server by entering an SMB:// address in the "Connect To..." box in the Finder.

Now I'm trying to set up a couple of scripts to allow me to take files home to work on them and then copy them back to the LAN when I reconnect.

The problem I'm having is that rsync keeps copying every file, instead of just the changed ones. To be more precise, if I rsync a fairly small group of files and then immediately rsync them again, it properly copies nothing the second time. If, however, I wait a few minutes and rsync agin, it proceeds to copy all the files again as if they had all been changed.

My theory is that rsync is checking modification dates of enclosing directories, so that if someone on the LAN saves something to the directory I'm trying to rsync, rsync assumes that everything in the directory changed.

Is there any way around this?
     
Forum Regular
Join Date: Mar 2001
Status: Offline
Reply With Quote
Jan 31, 2003, 01:14 PM
 
you could try the -c checksum method. it's slower since it computes a checksum for each file instead of checking timestamps. man rsync for details.

if that works, then i imagine that you are correct that there are timestamp issues with the directory or maybe even with smb volumes in general.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2