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. |
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 |
Yeah !!
Why have I not seen this before ? To simple ? Temporary blindness ? Many thanks Dave. |
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.
|
All times are GMT -4. The time now is 09:32 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.