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.

Here's the context: I have about 400 students with Time Machine backups from Lion computers. We wiped and re-imaged their laptops with new software AND with Mountain Lion. We just discovered that you can no longer use Time Machine to "Browse other Backup Disks" in Mountain Lion. (The option is there, but the functionality is broken.) The students will have to navigate in Finder to their most recent backup and manually drag the files to their new computer. However, the Library is hidden on the disk, and they can't access it without unhiding it. I know how to unhide the folder using this method in Terminal:

cd ../../Volumes/WhateverTheyNamedTheirBackupDrive/Backups.backupdb/Student's MacBook Air/2012-07-30-192502/Macintosh HD/Users/StudentsUserName ls chflags nohidden Library

Does anyone have any idea how I could script something that unhides the mounted backup folders' libraries? I'm struggling with the extreme variability of student backup disk names and folder names within a Time Machine backup. (And I can't exactly expect 400 kids to get it right in terminal.)

share|improve this question
    
If you can author a script that works, would you trust them to run it? This is probably the simplest route if so. –  ephsmith Aug 19 '12 at 23:29
    
Hi Beth! Can we assume the short names off he students is the same on the backup drives as the current machine? Also - is your plan to wipe the backups or have the new machines inherit the old files? (please say yes to the second question) –  bmike Sep 19 '12 at 0:18
    
It sounds like specific files need to be copied over, but you can't due to the variability of backup folder names. What about a script that copied the right files once the kids manually identified the proper backup? Or are the required files individual to each kid? –  robmathers Sep 19 '12 at 2:01

1 Answer 1

Could you use something like this?

sudo /System/Library/Extensions/TMSafetyNet.kext/Helpers/bypass chflags nohidden /Volumes/*/Backups.backupdb/*/*/*/Users/*/Library/

bypass was in /System/Library/Extensions/TMSafetyNet.kext/Contents/MacOS/bypass on Lion.

share|improve this answer

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.