Be careful with sudo and making sure you pick the correct Mac's files since there is no undo or confirmation of the following command:
sudo tmutil delete /Volumes/drive_name/Backups.backupdb/old_mac_name
The sudo command needs your password (and it won't echo to the screen, so just type it and pause to be sure you're dating the correct files before pressing enter). If you want to be safer, you can pick one snapshot to delete first to be sure the command works as intended. This is nice since it could take hours to clean up some larger backup sets and you want to leave the Mac confident it's deleting the correct information store.
You can use the tmutil
tool to delete backups one by one.
sudo tmutil delete /Volumes/drive_name/Backups.backupdb/mac_name/YYYY-MM-DD-hhmmss
Since tmutil
was introduced with Lion, this will not work on earlier OS versions.
If you want to get the current directory of backups (there can be multiple destinations defined and only one will be "current")
sudo tmutil machinedirectory
The Time Machine backup format is OS-version agnostic. It doesn't care which version of the OS created the backup or which version is trying to access it.
It does care which machine is accessing the data. As far as TM is concerned, erasing your internal drive turned it into a "new" disk volume. The stuff it backed up before the erasure and the stuff it backed up after the erasure are backups of different disks and have nothing whatsoever to do with each other. That's why when you're browsing the backup of your current disk you can't see further back than when it was created.
This can be fixed, but only if you are mistaken when you say I tried accessing the external drive via Finder but nothing appears in the Time Machine backup folder.
This can't be right. Your Mavericks backups, which you say exist, should show up in Finder.
If you look on your backup volume, you should see a folder named Backups.backupdb
. Inside that is a folder for every computer you are backing up there. I'll assume there's only one. Inside that folder are a bunch of folders, almost all of them snapshots named according to when they were taken, in the format YYYY-MM-DD-HHMMSS. There will also be an alias name "Later" and maybe a few other folders. If that isn't what you see, I don't know how to help you.
Open TM and see how far back in time you can go. Make a note of that date and time. Exit Time Machine.
In Finder, browse through the list of snapshots to find the latest one from before that oldest Mavericks backup. That was the last snapshot taken from before you erased the disk. If there isn't one, if the oldest snapshot is one you can reach with Time Machine, you're out of luck. You must have erased your TM backup when you set up TM to start backing up the new disk, and your old data is gone.
But if you can find such a pre-erasure snapshot, we can re-associate it with the new disk. That is, we can make TM treat it as a backup of your current boot disk.
To do that, log into your admin account and open Terminal (in /Applications/Utilities). Enter the command
sudo tmutil associatedisk -a /
but don't press return yet. Be sure you left a space after the slash. Open up that pre-erasure snapshot, and you will see a folder for each disk you were backing up at that time. (There's probably only one: your boot volume. That's the one we want.) Drag that folder (the one for the snapshot of your boot volume) to the Terminal window. Drop it anywhere; Terminal will put it in the right place.
Press return. If you've never used sudo before, you'll get a scary warning message, which you should read but ignore. You'll be prompted for your admin password, which you need to type blind. Nothing will be echoed to the screen. Press return at the end of the password.
Time Machine should now be able to browse backwards across the erasure.
Best Answer
How about
This will produce a string with the full path in single quotes:
'/path/to/Conners Mac'
.