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

Go Back   Shirt Pocket Discussions > SuperDuper! > General

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-16-2006, 05:28 AM
Maxy Maxy is offline
Registered User
 
Join Date: Mar 2006
Posts: 3
YASQ (Yet Another Script Question)

Hello,

First the usual "bravo" stuff for the SD product...

Now to the question: A (new?) feature in the advanced options of SD 2.1 is the ability to run shell scripts before and after a scheduled (for example) backup.

We've seen a lot of questions in the forum related to mounting and unmounting scripts for backup partitions. I don't ask for another version of such scripts, but...

I do intend to mount the backup partition before the backup and to unmount it after. Is the use of the built-in mechanism of SD to call shell scripts before and after the backup a good idea (diskutil -list takes some time to "wake up" my external firewire disk holding the backup partition...) to mount the backup partition before the backup is undergone?

Optional question: what if my shell scripts calls some applescripts (with easier logging and error catching options, even if the applescript call shell scripts)?

Thanks in advance for any answer

M.
Reply With Quote
  #2  
Old 03-16-2006, 08:04 AM
Cuneyt Cuneyt is offline
Registered User
 
Join Date: Sep 2005
Location: Istanbul, Turkey
Posts: 33
Since SuperDuper! does not start to copy if the target drive was not mounted, I suppose, the script which would mount the drive won't help. An Applescript may be used for this purpose to mount the drive and open the SuperDuper! afterwards.

Of course, your shell scripts can call applescripts. For example, I created an applescript to make some cleanup just before SuperDuper! starts copying. This applescripts called by a shellscript which is set to run before SuperDuper's copy.
Reply With Quote
  #3  
Old 03-16-2006, 10:37 AM
Maxy Maxy is offline
Registered User
 
Join Date: Mar 2006
Posts: 3
Thank you for making clear one of my implicit questions which was: will a scheduled backup proceed at least through the running of the "before script" even if the target partition is not mounted yet, and then, after it is mounted (by the script) be able to backup...

The question remains open, even if you skepticism seems justified to me...

M.
Reply With Quote
  #4  
Old 03-16-2006, 11:03 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,844
Send a message via AIM to dnanian
Sorry, Maxy -- I didn't reply because Cuneyt had it exactly right. If you want to mount/unmount, you'll need to modify the scheduling scripts, because those run before the settings are loaded (and after things are done). The shell scripts inside SD! itself occur too late for this purpose.
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 03-16-2006, 11:42 AM
richardl richardl is offline
Registered User
 
Join Date: Mar 2006
Posts: 15
This is a really good idea to safe guard the backup (keep it unmounted .. mount it for the backup and then umount) .. Is it possible to add this capability to SD?
Reply With Quote
  #6  
Old 03-16-2006, 12:16 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,844
Send a message via AIM to dnanian
It's something we're investigating -- anything's "possible", of course! It's a question of whether it's a good thing to do, and whether it can be expressed appropriately in the UI without confusion.
__________________
--Dave Nanian
Reply With Quote
  #7  
Old 03-16-2006, 12:01 PM
Maxy Maxy is offline
Registered User
 
Join Date: Mar 2006
Posts: 3
OK. Thanks for the answer. I'll just have to build something inspired by this very interesting thread ...

M.
Reply With Quote
  #8  
Old 03-16-2006, 12:18 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,844
Send a message via AIM to dnanian
Yes -- Dave has a lot of good ideas in there, so I'm sure you'll be able to piece something together.
__________________
--Dave Nanian
Reply With Quote
Reply


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
Do shell script erroring? Budgie General 1 02-08-2006 05:50 PM
Scheduled Custom Script Uses Wrong Script? Dasman General 1 12-08-2005 02:55 PM
Question about exluding a directory in script justanotheruser General 3 11-18-2005 12:17 PM
Error: No space left on device tradervic General 11 06-29-2005 05:50 PM
Error when running SuperDuper via shell script kbradnam General 9 03-09-2005 06:12 PM


All times are GMT -4. The time now is 03:13 AM.


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