![]() |
|||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
#1
|
|||
|
|||
![]()
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 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 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? |
#2
|
||||
|
||||
It sounds to me like your code isn't running, or perhaps hasn't been compiled in: onBeforeRunningCopy is going to happen before SD! runs at all -- SD! hasn't even been launched yet.
Note, too: if your DMGs are the same size as the original volume, that's as large as the sparse image would ever grow (since the size of the original volume is the maximum size set). As such, you're not buying yourself any room at all...
__________________
--Dave Nanian |
#3
|
|||
|
|||
Quote:
SD is not waiting for the script to finish executing before it attempts the backup. I can buy a short delay if I set it to repair permissions on the source volume first, but that doesn't buy me enough time for the image to mount. Quote:
See this earlier thread for more info on this problem. http://www.shirt-pocket.com/forums/s...ead.php?t=2103 |
#4
|
||||
|
||||
I just don't understand how this can be, Marco_Polo. I'm looking at the code here, and it calls the onBeforeRunningCopy before it runs the backup (which loads the settings). The only way I can see it doing otherwise is if the "default" settings (the configuration it'll start up with normally) references the same disk.
As far as the image goes, if your source volume is 250GB, the most the sparse image can grow to is 250GB, since that's set as it's maximum size...
__________________
--Dave Nanian |
#5
|
|||
|
|||
Quote:
Quote:
What I want to know at the moment is how to get SuperDuper to wait until my disk image has mounted before it attempts its scheduled backup. I just tried the "run shell script before copy starts" option using a shell script with a sleep delay in it and again, SD ignored the delay. Same bloody error. If it'd just hold off for another 30 seconds or so, the disk image would finish mounting and it could perform the backup. |
#6
|
|||
|
|||
Okay, I've got it figured out.
Since the script is being executed by CopyJob instead of SuperDuper, delays only affect CopyJob. So I told SuperDuper to delay 5 minutes. Here's the code: Code:
on beforeRunningCopy() tell application "Finder" mount volume "smb://192.168.n.n/BACKUP_VOLUME" open file "BACKUP_VOLUME:Backup.dmg" end tell tell application "SuperDuper" delay 300 end tell end beforeRunningCopy |
#7
|
||||
|
||||
I've just tested the images again here, and runaway image growth is not reproducible here. It just will not occur. The image grows to the maximum size set and no further...
__________________
--Dave Nanian |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fw Drive Wont Boot | Budgie | General | 3 | 11-05-2006 02:22 PM |
Backing up _FROM_ a SMB/CIFS server? | TheAbbott | General | 1 | 03-10-2006 03:42 PM |
Problems with SD | fdwlaw | General | 8 | 01-15-2006 11:58 AM |
Backing Up Server | digitalclips | General | 1 | 07-11-2005 03:59 PM |
AirPort base station as server: can't connect! | dnanian | General | 0 | 01-03-2003 12:48 PM |