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

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-01-2010, 01:14 PM
Harry Cover Harry Cover is offline
Registered User
 
Join Date: Dec 2005
Posts: 64
Cloning (synchronizing) with Applescript

Config:
Disk A: Boot disk
Disk B: backup disk

I have written an Applescript which copies my Disk A important database documents to Disk B (keeping all different daily versions of my work).

I would like to clone/synchronize Disk A on Disk B, so that I can boot safely from Disk B, if needed.
So, I must first copy Disk B backup folders, to disk A avoiding those folders to be erased when cloning Disk A
I have written an Applescript to perform it.
Then I would like this script to launch SD and make it:
- Repair permissions on Disk A
- Smart update Disk B from Disk A
- Quit

Is it possible ?
How ?

Thanks to help me.
Reply With Quote
  #2  
Old 03-01-2010, 03:28 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
Well, I'd probably just run your applescript using osascript as a 'before copy' script. Then, when it's done, your regular backup will continue, and can be configured to do the other parts.

You can get documentation for osascript in Termninal with:

Code:
man osascript
Hope that helps!
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 03-02-2010, 01:22 AM
Harry Cover Harry Cover is offline
Registered User
 
Join Date: Dec 2005
Posts: 64
Yeah !!

Why have I not seen this before ? To simple ? Temporary blindness ?

Many thanks Dave.
Reply With Quote
  #4  
Old 03-02-2010, 08:09 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
Don't know! But this is exactly the kind of thing the 'before copy' script is for -- to let you prepare things before the copy. If there are things to clean up after, you can use the 'after copy' script, too.
__________________
--Dave Nanian
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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
Cloning not working NMBob General 8 06-13-2008 05:29 PM
A strategy for managing SD! jobs via AppleScript Syzygies General 15 05-01-2006 07:55 AM
Problems automating backups with applescript and crontab kbradnam General 4 01-20-2006 07:40 AM
applescript help snoopy67 General 1 09-17-2005 09:07 AM
AppleScript bug? fixed! pzingg General 1 11-02-2004 06:37 PM


All times are GMT -4. The time now is 10:22 AM.


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