Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have opened the following preference files:

com.apple.backupd-wake

com.apple.backupd-auto

com.apple.backupd-attach

com.apple.backupd

com.apple.TimeMachine

None of them mention the volume being used for time machine backups. Any ideas?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Time Machine's main preferences can be found at /Library/Preferences/com.apple.TimeMachine.plist (which you listed - but the name is stored there)

The Backup hard drive is actually stored as an data blob(1) under the key BackupAlias. Property List Editor and most text editors (eg. TextMate, SubEthaEdit, BBEdit, etc.) won't show the information after converting the preference list from binary to xml using plutil. However you can use PlistBuddy (available in /usr/libexec/ which is not in the default path) to give you the name of the drive (with a bunch of repeated information):

/usr/libexec/PlistBuddy -c 'Print :BackupAlias' /Library/Preferences/com.apple.TimeMachine.plist

1 - This is the base64 decoded form of a _CFULRAlias to be exact.

share|improve this answer
    
Thanks. I am able to run this command successfully. Do yo uknow how I would change the volume? –  Corey Floyd Aug 11 '09 at 9:00
    
Without resorting to using the Time Machine Control Panel? Not really. I don't know how to properly put the data into the .plist though from what I understand it should be similar to what is done for adding items to the Dock from the command line. –  Chealion Aug 11 '09 at 15:28

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.