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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-28-2008, 07:30 AM
brantwinter brantwinter is offline
Registered User
 
Join Date: Aug 2006
Posts: 10
Clone and then copy to a second external drive ??

Hi - I have been a happy SD using for a few years now, but I think I must be getting more and more paranoid !

I currently run a full bootable backup to an external USB drive and would like to then copy this to my NAS disk.
I have tried rsync ( manually ) after a SD copy has completed and I am met by all sorst of errors as rsync tries to copy the files across. I have tried runnign my rsync script with sudo but no luck. The errors are strange I/O type errors after rsync has copied about 50Gb of the data.

Does anyone else make a second full copy of theor SD backup after completion, if so how ?

Thanks in advance.
Reply With Quote
  #2  
Old 05-28-2008, 07:58 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Just schedule a second copy, either of the first or of the source...
__________________
--Dave Nanian
Reply With Quote
  #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
  #4  
Old 05-28-2008, 08:47 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
So, just run SD!'s "Backup - user files".
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 05-28-2008, 08:50 AM
brantwinter brantwinter is offline
Registered User
 
Join Date: Aug 2006
Posts: 10
I suppose I just wanted to use some mac UNIX geekery to achieve the same thing
Reply With Quote
  #6  
Old 05-28-2008, 09:00 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Yeah, I know... but why?
__________________
--Dave Nanian
Reply With Quote
  #7  
Old 05-28-2008, 09:01 AM
brantwinter brantwinter is offline
Registered User
 
Join Date: Aug 2006
Posts: 10
Sorry - One more thing.

If I backup just the user files using SD to a sparesimage on the second drive, is there any way to shrink it down every now and again. I used to back up to spareimage files and the size of the files just kept growing even though I had removed large files from my profile.
Reply With Quote
  #8  
Old 05-28-2008, 09:28 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
You'd have to compact in a background process. e.g.

Code:
nohup /bin/bash -c "sleep 30; hdiutil compact image-path-or-variable" &
__________________
--Dave Nanian
Reply With Quote
Reply


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 04:00 AM.


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