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 06-04-2005, 02:17 PM
rik17 rik17 is offline
Registered User
 
Join Date: Jun 2005
Posts: 6
Shell scripting

Hello there.
First let me say that I think SuperDuper is a very elegant piece of software, clearly there was (and is even more for 2.0) a lot of thinking put into the UI, and it shows. Great stuff, thanks! I almost never find software valuable enough to buy, but this one clearly was.

Anyway, even though I've been a Mac user since '84, I'm much more comfortable using Unix command-line scripting than the very awkward English-like Applescript. Is there any thought on making SuperDuper command-line scriptable in 2.0? I read you're redoing the scheduling, and I was thinking about being able to do something like:

/Applications/SuperDuper!.app/runSD --verbose --script=/Users/me/Documents/fullWeekly.sds

And if the .sds file could be a little more text editor friendly (no base64 encoding of volume name if possible), then we'd get the best of everything: The ability to run backups from the command line in ssh, as well as the ability to schedule from SD or cron/launchd.

My apologies if this has be rehashed many times before.

Rik.
Reply With Quote
  #2  
Old 06-04-2005, 06:23 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,293
Send a message via AIM to dnanian
Hi, Rik. No plan to do that at present, but you *can* run AppleScripts from the command line... and you can script apps with osascript. By using those techniques you should be able to achieve your goals.

(I know you said you don't like AppleScript, but that's really more the Mac standard, so that was our priority for scripting...)
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 06-09-2005, 01:16 PM
rik17 rik17 is offline
Registered User
 
Join Date: Jun 2005
Posts: 6
I had forgotten the trick of running AppleScripts from the command line.
Thanks for reminding me. It's not optimal, but it should fit the bill.
Reply With Quote
  #4  
Old 06-09-2005, 01:23 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,293
Send a message via AIM to dnanian
Cool. Thanks for following up.
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 06-09-2005, 08:36 PM
rik17 rik17 is offline
Registered User
 
Join Date: Jun 2005
Posts: 6
OK so this is what I did to get automated backups going:

1- Opened SD, set up the settings the way I wanted them, and saved them.

2- Copied the included sample AppleScript in the SD Disk Image and changed the name of the settings file to the one created in (1) above.

3- Saved that AppleScript as an application.

4- Created a launchd plist that I put in /Library/LaunchAgents, which will daily at 5:00 AM start SD and do my automated backup by running the application.

Until the next generation of automation, that's what I will do. Anything better than that?
Thanks.
Reply With Quote
  #6  
Old 06-10-2005, 02:55 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,293
Send a message via AIM to dnanian
That's fine. You can also use cron/CronniX or iCal -- but launchd on Tiger works fine too.
__________________
--Dave Nanian
Reply With Quote
  #7  
Old 07-15-2005, 02:27 AM
ntutak ntutak is offline
Registered User
 
Join Date: Jul 2005
Posts: 2
rik17 - for the non-launchd savvy among us, can you give a little more detail on how to use the AppleScript to run a daily automatic backup? Thanks!
Reply With Quote
  #8  
Old 07-15-2005, 08:41 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,293
Send a message via AIM to dnanian
ntutak --

Have you tried the steps in Section 12 of the user's guide?
__________________
--Dave Nanian
Reply With Quote
  #9  
Old 07-15-2005, 11:02 PM
ntutak ntutak is offline
Registered User
 
Join Date: Jul 2005
Posts: 2
Haven't tried, I am hoping to learn how to do it directly from the terminal without using the cronnix utility.
Reply With Quote
  #10  
Old 07-15-2005, 11:08 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,293
Send a message via AIM to dnanian
Well, you can use "crontab -e" to edit the crontab, but you have to know the syntax. You can find that in the man page for cron/crontab.

You can also just schedule with iCal instead...
__________________
--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
Error when running SuperDuper via shell script kbradnam General 9 03-09-2005 05:12 PM


All times are GMT -4. The time now is 05:52 PM.


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