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 12-23-2012, 05:07 PM
Dan Lester Dan Lester is offline
Registered User
 
Join Date: Nov 2008
Posts: 173
make before and after shell scripts job-specific?

I was pleased to stumble on the strategy by "T’N’T Luoma" a couple of years ago for mounting a backup volume before cloning, and then unmounting it. See

http://tntluoma.com/shell-scripts/su...mount-unmount/

That keeps from having open volumes that make my system want to spin up disks even when I'm not using those disks. This strategy just runs a "mount" shell script before cloning, and an "unmount" shell script after cloning.

One frustration with this, however, is that SuperDuper always wants to run the SAME shell scripts, no matter what the clone job is. So If I want to clone to different volumes (say, a daily backup, and another a weekly backup, or backups to different disks), I don't seem to be able to do it. I can only mount/dismount my "daily" volume OR my "weekly" volume". It would be handy (and sensible) to have the "before" and "after" shell scripts one selects be specific to the particular job being scheduled.

Maybe there is a way to do this that I just haven't figured out?
Reply With Quote
  #2  
Old 12-23-2012, 05:22 PM
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 can, using saved settings, but there's no need, since the script is passed parameters that can let you determine the volume names.

Note, though, that SuperDuper! does the mount/unmount automatically. However, this is broken on schedules in Mountain Lion (see the blog).
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 12-23-2012, 08:49 PM
Dan Lester Dan Lester is offline
Registered User
 
Join Date: Nov 2008
Posts: 173
I guess I don't understand. How is the script passed parameters? The volume name is what we're supposed to edit into the script.

If I'm setting up to run a shell script "mount-daily" before my scheduled daily backup starts ("mycomputer" to "daily backup volume"), and I save that as a scheduled task, and then I go set up another task to do a weekly backup, that shell script that I then select -- "mount-weekly" replaces the first one in the scheduled task.

I'm not aware that SuperDuper does the mount/unmount automatically. I'm using 10.5.8 and, as far as I can tell, the volumes that SuperDuper clones to stay mounted. SuperDuper never tries to unmount them when done. Well, at least if the volume was mounted when SuperDuper launches, it stays mounted when the clone is done.
Reply With Quote
  #4  
Old 12-23-2012, 10:42 PM
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
The User's Guide explains. Have you reviewed that?
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 12-25-2012, 01:20 PM
Dan Lester Dan Lester is offline
Registered User
 
Join Date: Nov 2008
Posts: 173
Thanks. I will admit that I didn't see in the Users Guide about passed parameters. Nice!

But I also just assumed that the target volumes had to be pre-mounted in order for Super Duper to work. Tried it last night with those volumes unmounted. I got up in the morning to find that it worked! So indeed, SuperDuper mounts volumes it needs to access, and unmounts them when done. I always just *assumed* that those volumes had to stay mounted. That's a real pleasure to find out that they don't.

I've used SuperDuper seamlessly for at least five years, and I'm continually delighted by it, as I gradually learn more about it.

This all being the case, I'm trying to understand what the script by "T’N’T Luoma" was for. I thought that script was to mount before clone, and dismount after clone. But if SuperDuper already does that, what's that script for??
Reply With Quote
  #6  
Old 12-25-2012, 04:03 PM
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
I think he thought he was doing a mount that we were already doing. The before/after scripts run too late, and too early, for mount/unmounts...
__________________
--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


All times are GMT -4. The time now is 07:55 PM.


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