Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Time Machine API / Command-line scripts?

I need the reference, if it exists, to Time Machine's API or simply some commands that can change the disk in use with Time Machine and back!

I'd like the script I'm going to write to do the following:

Change from disk A to disk B
Force Time Machine backup
Change from disk B back to disk A

Thank you!

like image 222
Olivier Tremblay Avatar asked Jan 11 '10 13:01

Olivier Tremblay


3 Answers

Lion added tmutil, a command line interface into Time Machine.

https://apple.stackexchange.com/questions/17759/what-tiny-thing-in-lion-makes-you-smile-or-has-caught-you-off-guard/18665#18665

like image 106
Yannick Avatar answered Sep 17 '22 22:09

Yannick


If AppleScript is fine with you have a look at this post with script. It should serve as a basis for your own.

like image 34
extraneon Avatar answered Sep 18 '22 22:09

extraneon


Apple time capsules include an 'archive' command that can back-up the time capsule disk to an external USB-attached disk.

like image 29
Alex Brown Avatar answered Sep 20 '22 22:09

Alex Brown