The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > OS X (Apple)
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 12-21-2007
scotbuff scotbuff is offline
Registered User
 

Join Date: Jun 2005
Location: Middletown, PA
Posts: 57
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
Reply With Quote
Forum Sponsor