Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I am trying to create a script to determine the destination of time machine on a number of computers I manage. It shows very clearly via Time Machine Settings in System Prefs. I need to be able to find that info via command line.

share|improve this question
add comment

2 Answers

The tmutil utility does exactly that, but I think it was only added in Lion.

As an added bonus, Apple doesn't document the tmutil argument you'll need, but I dug through the output of "strings /usr/bin/tmutil" and found this, which is what you're looking for:

tmutil destinationinfo

Also, "tmutil status" will tell you if a backup is currently running. It's another undocumented command.

share|improve this answer
add comment

In this link you can find the answer: http://superuser.com/questions/20887/in-what-preference-file-does-time-machine-store-the-backup-volume-name

/Library/Preferences/com.apple.TimeMachine.plist

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.