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 09-05-2008, 06:03 PM
julianv julianv is offline
Registered User
 
Join Date: May 2007
Posts: 3
Use scripts to kill and restart apps?

The SD User's Guide recommends quitting all apps before running a backup. I usually do this by restarting with a Safe Boot (shift key pressed during restart). But I would like to set up a system for automatically triggering scheduled backups when the Mac is not in use (e.g., late at night). I'm not sure how to reconcile these two issues.

I could reboot the Mac in safe mode on those nights when there is a scheduled backup. But that requires me to remember to do that, and to remember to reboot in normal mode the next morning. This extra work defeats part of the rationale for automated scheduling.

I don't have many startup items running. I do run Microsoft Database Daemon (part of Office 2008), and this is often cited as one of the processes that should be killed during a backup. SD has provisions for running a shell script before a backup and another one after the backup. So I created the following two scripts:

#!/bin/bash
osascript -e 'tell application "Microsoft Database Daemon" to quit'

#!/bin/bash
osascript -e 'tell application "Microsoft Database Daemon" to launch'

The first one runs before the backup, the second one runs after it. I tried running with the scripts, and so far, I have seen no problems. Does this look like a reasonable solution?
Reply With Quote
  #2  
Old 09-05-2008, 06:27 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
Yes -- as long as the Daemon is the only thing running that might be updating a big file (e.g. don't run Entourage).
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 09-06-2008, 05:02 PM
Sigi Sigi is offline
Registered User
 
Join Date: Aug 2008
Location: Munich
Posts: 44
Hi,

I have a similar issue. The only difference is that I have never written a script in my life. I do have 3 startup items running:

Skype
BOINCManager and
Drobo Dashboard

1. Will these 3 apps mess up a bootable backup?
2. How would the script look like that I need?
3. In what app do you write the script?

Thanks for your help

Sigi

Last edited by Sigi; 09-06-2008 at 05:13 PM.
Reply With Quote
  #4  
Old 09-06-2008, 08:11 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
Those should be fine, Sigi.
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 09-06-2008, 10:55 PM
Sigi Sigi is offline
Registered User
 
Join Date: Aug 2008
Location: Munich
Posts: 44
Hello Dave,

I assume you mean that the 3 apps running will not bother the backup - correct

Sigi
Reply With Quote
  #6  
Old 09-07-2008, 12:33 AM
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
That's exactly what I'm saying.
__________________
--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 06:27 PM.


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