Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-28-2008, 08:41 AM
brantwinter brantwinter is offline
Registered User
 
Join Date: Aug 2006
Posts: 10
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 ?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:39 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.