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

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-23-2007, 07:42 AM
Marco_Polo Marco_Polo is offline
Registered User
 
Join Date: Feb 2007
Posts: 16
Unhappy Backing up to a .DMG File on Server

I'm very frustrated over this.

How do I get SD to make automated backups onto an ordinary disk image file that's situated on a remote server?

Alternatively, how can I make SD wait nicely for the image file to be mounted when I use AppleScript? SD does not respect delays coded in the CopyJob.applescript file.

Details...

Due to issues with ever-growing .sparseimage files filling up my server, I decided to make regular backups to an ordinary .dmg file instead. The .dmg file is the same size as my hard drive and resides on a server volume.

SuperDuper won't mount the .dmg file for scheduled backups.

It won't do it from a scheduled backup when I select the .dmg file as the target in the main window and it won't do it from a scheduled backup when I select the mounted volume from the .dmg file as the target.

I thought that I'd just work around this problem using AppleScript to mount the server and disk image before the backup is run. I altered the CopyJob.applescript file. My first attempt looked like this...

Code:
on beforeRunningCopy()
tell application "Finder"
	mount volume "smb://192.168.n.n/BACKUP_VOLUME"
	open file "BACKUP_VOLUME:Backup.dmg"
end tell
end beforeRunningCopy
But SuperDuper's scheduled backup failed with this error:
The automatic copy aborted because SuperDuper! could not locate the Destination volume

It looked for the volume before it was mounted.

I figured that I could work around this problem with a delay to check for the existence of the mounted volume, so I revised my code...

Code:
on beforeRunningCopy()
tell application "Finder"
	mount volume "smb://192.168.n.n/BACKUP_VOLUME"
	open file "BACKUP_VOLUME:Backup.dmg"
set i to 0
repeat until (i = 1000)
     if not (exists "Boot HD:Volumes:Backup") then
          delay 15
          set i to 0
     else
          set i to 1000
          delay 30
     end if
end repeat
end tell
end beforeRunningCopy
SuperDuper's scheduled backup failed with the same error!

Watching it while it worked, I could see that SuperDuper completely ignored the delays in the AppleScript. It started the script going and then tried to find the volume right away without waiting for the script to complete.

How can I get SD to mount the disk image and WAIT for it to completely mount before starting the backup?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fw Drive Wont Boot Budgie General 3 11-05-2006 01:22 PM
Backing up _FROM_ a SMB/CIFS server? TheAbbott General 1 03-10-2006 02:42 PM
Problems with SD fdwlaw General 8 01-15-2006 10:58 AM
Backing Up Server digitalclips General 1 07-11-2005 02:59 PM
AirPort base station as server: can't connect! dnanian General 0 01-03-2003 11:48 AM


All times are GMT -4. The time now is 01:30 PM.


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