scolfax Posted January 21, 2013 Report Share Posted January 21, 2013 I apologize if I am repeating a previously asked question. I am using Retrospect 10.0.1 on a MacBook Pro (OS X 10.8.2). Is it possible for a Retrospect backup script to run an Applescript or a Unix shell script programatically at the completion of the backup script? Alternatively, how can I tell programatically when a Retrospect backup script has completed execution? Is there some signal that could be monitored by an Applescript or a Unix shell script that would indicate completion of the backup script? I ask because I run a backup script every day at 3AM and would like to do some non-Retrospect cleanup tasks at the completion of each backup. 1 Quote Link to comment Share on other sites More sharing options...
prl Posted January 21, 2013 Report Share Posted January 21, 2013 One possibility: Set up an email account for the purpose and have its email piped into the script. Then set Retrospect to email notifications to the account. The script may want to check whether the email indicates successful completion or not. 1 Quote Link to comment Share on other sites More sharing options...
scolfax Posted January 22, 2013 Author Report Share Posted January 22, 2013 Thank you for that suggestion. It certainly would work. It would be nice if one could directly run a script, along the lines of "run Applescript ..." or "run shell script ...", at the completion of a Retrospect script execution, but that feature evidently is not currently available. Quote Link to comment Share on other sites More sharing options...
prl Posted January 22, 2013 Report Share Posted January 22, 2013 ... It would be nice if one could directly run a script, along the lines of "run Applescript ..." or "run shell script ...", at the completion of a Retrospect script execution ... Not forgetting "run VB script" or "run Windows shell script (shudder)" for Retrospect on Windows. The advantage of the email approach is that no new mechanism is needed, though it means having to run a local mail server and configure it. 1 Quote Link to comment Share on other sites More sharing options...
CallMeDave Posted January 27, 2013 Report Share Posted January 27, 2013 it means having to run a local mail server and configure it. Apple Mail has a Rule step of Run Applescript, so you could probably do it that way. Would require a machine with Mail running and checking, so there would have to be a user logged into OS X at all times. Quote Link to comment Share on other sites More sharing options...
scolfax Posted January 27, 2013 Author Report Share Posted January 27, 2013 That would be easy to set up and would provide a mechanism to run an Applescript at the completion of the backup. As you say, it would require Apple Mail to be running at all times, but that is not a problem. Thanks for that suggestion. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.