User Tools

Site Tools


unix:osx:change_time_machine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
unix:osx:change_time_machine [2010/02/22 05:24]
ben created
unix:osx:change_time_machine [2010/02/22 05:45] (current)
ben
Line 5: Line 5:
 Steps are published all over for how to do this, but they all seem to be missing one component from what I've found with Snow Leopard- namely that the xattr attribute must be entered in ASCII Hex for things to work properly. Steps are published all over for how to do this, but they all seem to be missing one component from what I've found with Snow Leopard- namely that the xattr attribute must be entered in ASCII Hex for things to work properly.
  
-Also, Snow Leopard does not include the binary fsaclctl, which is necessary to update the settings on the Time Machine disk.  You can either try to find a copy of fsaclctl online, or find out what command has replaced it.+Also, Snow Leopard does not include the binary fsaclctl, which is necessary to update the settings on the Time Machine disk.  You can either try to find a copy of fsaclctl online, or find out what command has replaced it. If you obtain a copy of the fsaclctl binary, copy it to your /usr/sbin folder.
  
 Steps to get your existing backups working again are essentially:​ Steps to get your existing backups working again are essentially:​
Line 36: Line 36:
   * Type: <​code>​cd /​Volumes/​TM</​code>​   * Type: <​code>​cd /​Volumes/​TM</​code>​
   * We need to change the old MAC address file to our new MAC address. What follows is an example, the file is named after the old MAC, and you have already made a note of your new MAC address, so fill in the strings to match your own settings:<​code>​mv .0016cb9268a5 .0017da1978f9</​code>​   * We need to change the old MAC address file to our new MAC address. What follows is an example, the file is named after the old MAC, and you have already made a note of your new MAC address, so fill in the strings to match your own settings:<​code>​mv .0016cb9268a5 .0017da1978f9</​code>​
-  * Now the tricky part- changing the attribute on the Backups.backupdb/​systemname directory. Here's the output of the xattr -l command on my disk: +  * Now the tricky part- changing the attribute on the Backups.backupdb/​systemname directory. Here's the output of the xattr -l command on my disk:<​code>​frieda:​Library ben$ xattr -l /​Volumes/​Ben\'​s\ Lacie/​Backups.backupdb/​frieda/​
-<​code>​frieda:​Library ben$ xattr -l /​Volumes/​Ben\'​s\ Lacie/​Backups.backupdb/​frieda/​+
 com.apple.backupd.BackupMachineAddress:​ d4:​9a:​20:​c5:​ad:​20 com.apple.backupd.BackupMachineAddress:​ d4:​9a:​20:​c5:​ad:​20
 com.apple.backupd.HostUUID:​ com.apple.backupd.HostUUID:​
Line 45: Line 44:
 00000025 00000025
 </​code>​ </​code>​
 +  * Both of these attributes should be Hex values, things seem to vary though. ​ If yours appear like the HostUUID value above, then you should use Hex formats, though I'm not sure that must be the case.  If you need Hex values, open up "​Character Viewer",​ and you can see the values of the numbers and letters you will need.  They will need to be entered with the "​-x"​ argument to xattr. They will need to end with a "​00"​. For example, if my new MAC address is 00:​17:​da:​19:​78:​f9,​ then we can see from Character Viewer that "​0"​ is "​00"​ in hex, ":"​ is "​3A"​ in hex, etc.  My MAC string in hex, with a "​00"​ at the end, would then be: <​code>​00 00 3A 31 37 64 61 3A 31 39 3A 37 38 3A 66 39 00</​code>​
 +  * To set the attribute for BakupMachineAddress then, the command would be: <​code>​sudo xattr -x com.apple.backupd.BackupMachineAddress "00 00 3A 31 37 64 61 3A 31 39 3A 37 38 3A 66 39 00" Backups.backupdb/​frieda/</​code>​
 +  * This will need to be repeated for the HostUUID attribute if you have that attribute on your directory as well.
  
 +===== Disable file system attribute edits =====
 +  * Open Terminal (probably already opened)
 +  * Type: <​code>​cd ~/</​code>​
 +  * Type: <​code>​sudo fsaclctl -p /Volumes/TM -e</​code>​
 +===== Eject TM Disk & Re-plug =====
 +  * Eject the TM disk via Finder
 +  * Un-plug the TM disk
 +  * Re-plug the disk
 +  * Open Time Machine Preferences
 +  * Check that your disk is selected
 +  * Click the TM logo in the menu bar, and choose "​Backup Now"
unix/osx/change_time_machine.1266834290.txt.gz · Last modified: 2010/02/22 05:24 by ben