Thanks for the reply. I did think of that, but I htought that maybe there was another way of doing it with a clever little rsync script. I had updated my 10.5.2 rsync version from the instructions at teh Bombich site and have made a script:
Code:
#!/bin/bash
# USER=$1 #Don't need this at present
#echo "Backing up ${USER}"
# backup volume
VOLUME='/Volumes/LACIE_160'
SRC='/Volumes/LACIE_160/Users/brantwinter'
DEST='/Volumes/nasdata/Mirrors/LACIE_160/'
# Get device using 'diskutil info ${VOLUME}'
#DEVICE='/dev/disk1s2'
BDISK=`/usr/sbin/diskutil list | awk '$3=="LACIE_160" {print $6}'`
if [ ! -e ${VOLUME} ]
then
echo "Mounting ${DEVICE} as ${VOLUME}"
/usr/sbin/diskutil mount $BDISK > /dev/null
else
echo "${VOLUME} already mounted"
fi
echo "Backing up ${SRC} to ${DEST}"
sudo rsync -aNHAXx --protect-args --fileflags --force-change --delete --timeout=120 ${SRC} ${DEST}
echo "Unmounting ${VOLUME}"
sleep 5
/usr/sbin/diskutil unmount $BDISK > /dev/null
One of the reasons for doing it this way was to just make a second copy of my profile rather than the whole disk if you know what I mean....
I am not sure if rsync is falling over on the permissions or what ? I think I may have read somewhere, for this type of thing to work I need to allow rsync to run as root, or say create a UNIX user called backup and allow the backup user to execute this rsync script as root. I have no idea how to do this though...Any ideas ?