[X-Unix] Rsync mirroring w/o including all volumes

Michael Wise spiski at okean.com
Sun Jul 3 15:35:18 PDT 2005


Greetings,

I'm trying to use rsync with cron to do a nightly mirror of all data 
from a tower's primary internal drive to a second internal drive on 
the same machine.

This is the command I'm using:

/usr/bin/rsync -a --delete /Volumes/Drive_1/* /Volumes/Drive_2


It is mirroring the data. but it's mirroring /*...and not /Volumes/Drive_1/*

The second drive has all of /Volumes/Drive_1/* plus all of 
Volumes/*....such that Drive_2 has two copies of Drive_1: one at it's 
root level and the other as a mirror of itself 
(/Volumes/Drive_2/Volumes/Drive_2)


How can I make rsynch mirror only the contents of Drive_1 to Drive_2? 
Am I overlooking something?



TIA,


--Mike


More information about the X-Unix mailing list