The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
google unix.com



OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
weird behavior of grep -P pankai Shell Programming and Scripting 2 12-20-2007 05:38 PM
Weird behavior on a Sun Fire V120 running solaris 10. jsandova SUN Solaris 2 10-05-2007 06:17 PM
sed behavior on hp-ux andy2000 Shell Programming and Scripting 8 05-04-2007 09:23 PM
ls behavior AtleRamsli High Level Programming 10 03-26-2002 07:31 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1 (permalink)  
Old 12-21-2007
scotbuff scotbuff is offline
Registered User
  
 

Join Date: Jun 2005
Location: Middletown, PA
Posts: 73
Weird rsync behavior

I use rsync to keep a directory in synchronization betwen a Linux box with the hostname brutal and a Mac running OS X 10.5 (Leopard) with the hostname cooper. When I run the following command on my Linux machine:
rsync -avz --delete myuserid@cooper:/Library/WebServer/Documents /Library/WebServer/Documents

It works perfectsly, it mirrors exactly what I have on the Mac into the same directory structure. However, when I run the following command on my Mac:

rsync -avz --delete myuserid@brutal:/Library/WebServer/Documents /Library/WebServer/Documents

It does begin to synchronize, but it always creates a new Documents directory under the structure I provided and ignores what is already there. So I get something that like this.

/Library/WebServer/Documents/Documents/allmyfiles

Why is this working differently and are there any suggestions. I believe even if I tried synchronizing using the following command I still encountered the exact same behavior.

rsync -avz --delete myuserid@brutal:/Library/WebServer/Documents /Library/WebServer

Meaning I still got the following - /Library/WebServer/Documents/Documents/allmyfiles
  #2 (permalink)  
Old 12-22-2007
verno verno is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 14
Maybe you have to use a patched rsync version on both sides?

See:

Mini-HOWTO: Fixing rsync on Tiger (Mac OS X 10.4.x)

sudo port list | grep -i rsync

sudo port install rsync-lart

HOWTO Backup Your Mac With rsync

syncing large (10--50GB) disk images over ssh efficiently? - Topic Powered by eve community
  #3 (permalink)  
Old 12-24-2007
dangral dangral is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2002
Posts: 699
Try this (note the extra /) :

Code:
rsync -avz --delete myuserid@brutal:/Library/WebServer/Documents/ /Library/WebServer/Documents
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0