Restore hidden files with Apple Mac OS X Time Machine

Apple's Time Machine works great, but restoring hidden files (files that start with a dot, like .ssh, .bashrc or .Trash) is difficult, but possible!

Time machine uses the settings as used by the Finder. So first step is to change Finders behaviour, to show hidden files. Execute this command (as a regular user) from within the Terminal.

$ defaults write com.apple.finder AppleShowAllFiles TRUE
$ killall Finder

Now you should be able to see extra files in the finder, like this:

Now start Time Machine and scroll back to the date you were sure a file existed.

Restore it and to hide all these (annoying) hidden files, revert to original Finder settings:

$ defaults write com.apple.finder AppleShowAllFiles FALSE
$ killall Finder

Comments

You saved my day!!! PS: Apple

You saved my day!!!

PS: Apple should have created a preference pane for this.

Thanks!

Thanks!

If you don't want to use the

If you don't want to use the terminal then the Cocktail utility works great. You can show all files using that program and far more.

http://www.maintain.se/cocktail/download.php

Thanks you! Very useful :)

Thanks you! Very useful :)

Thanks. This was very useful.

Thanks. This was very useful.

Thank you, thank you, thank

Thank you, thank you, thank you!

I was afraid I would have to do a complete restore just for a little 400MB hidden app directory!

Thanks again!

Thanks. I blew away my

Thanks. I blew away my .bashrc tonight and wanted to get it back.

I ran into the same problem and was thinking about setting the "show all files" setting, but I wasn't sure it would work.
You laid it out perfectly. It worked like a champ.

About Consultancy Articles Contact




References Red Hat Certified Architect By Robert de Bock Robert de Bock
Curriculum Vitae By Fred Clausen +31 6 14 39 58 72
By Nelson Manning robert@meinit.nl