![]() |
|
|
|
|
|||||||
| OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| weird behavior of grep -P | pankai | Shell Programming and Scripting | 2 | 12-20-2007 01:38 PM |
| Weird behavior on a Sun Fire V120 running solaris 10. | jsandova | SUN Solaris | 2 | 10-05-2007 03:17 PM |
| sed behavior on hp-ux | andy2000 | Shell Programming and Scripting | 8 | 05-04-2007 06:23 PM |
| ls behavior | AtleRamsli | High Level Programming | 10 | 03-26-2002 03:31 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
|||
|
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 |
| Thread Tools | |
| Display Modes | |
|
|