Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Time Machine and File Vault

Hello, everyone. I need a little help understanding how Time Machine and File Vault are supposed to work together and I hope the folks here can help me out.

My company requires me to have File Vault enabled on my company issued 15" MacBook Pro. I also use Time Machine with my personal 2TB Time Capsule. Recently I had the need to restore a couple of files from my TM backup so I fired up the TM UI and started looking for the file. Unfortunately there was apparently nothing in the backup. This is puzzling because my home folder gets backed up every time I log out in the morning.

I need some help understanding what I should see if I do need to restore any files in my Home folder. As it is now it appears that nothing is being backed up, but I know it is since the encrypted Home folder image is on the TC drive.

Any insights will be appreciated.

Regards,
Michael

MacBook Pro 15" C2D 2.8Ghz, 4 GB, 500GB, Superdrive!, Mac OS X (10.6.2), Time Capsule 2TB, iPhone 3G S (named Hermes II) 32 GB; Apple TV

Posted on May 17, 2010 6:10 AM

Reply
Question marked as Best reply

Posted on May 17, 2010 6:23 AM

Hello, everyone. I need a little help understanding how Time Machine and File Vault are supposed to work together and I hope the folks here can help me out.


They don't play well together, unfortunately. Time Machine will only back up your FileVault when you log out. If you don't log out, you don't get backed up.

My company requires me to have File Vault enabled


You may want to talk to them about letting you put sensitive files in an encrypted disk image instead. FileVault is major overkill for most people, and a source of all kinds of potential problems and hassles.

Recently I had the need to restore a couple of files from my TM backup


Unfortunately, that is not a possibility when you use FileVault. Time Machine can only restore an entire home folder when you're using FileVault. It cannot access individual files within the backup.
14 replies
Question marked as Best reply

May 17, 2010 6:23 AM in response to Michael Allbritton

Hello, everyone. I need a little help understanding how Time Machine and File Vault are supposed to work together and I hope the folks here can help me out.


They don't play well together, unfortunately. Time Machine will only back up your FileVault when you log out. If you don't log out, you don't get backed up.

My company requires me to have File Vault enabled


You may want to talk to them about letting you put sensitive files in an encrypted disk image instead. FileVault is major overkill for most people, and a source of all kinds of potential problems and hassles.

Recently I had the need to restore a couple of files from my TM backup


Unfortunately, that is not a possibility when you use FileVault. Time Machine can only restore an entire home folder when you're using FileVault. It cannot access individual files within the backup.

May 17, 2010 6:35 AM in response to thomas_r.

Thomas A Reed wrote:
Time Machine can only restore an entire home folder when you're using FileVault. It cannot access individual files within the backup.


Are you sure about that? I'm skeptical, but I'm not running FileVault anymore so I can't verify.

I can definitely say that you can restore individual files, even if you can't do it through Time Machine. Just open the backup sparse bundle file in the Finder, enter your password, find your files, and copy them out.

May 17, 2010 6:46 AM in response to etresoft

Here's another source:

http://www.macosxhints.com/article.php?story=2007111404402514

It does confirm what you say that you can access your FileVault backup in the Finder, though it should be noted that messing with Time Machine backups in the Finder is dangerous... if you change anything, you break the whole thing.

Also, #9 on the [Time Machine FAQ|http://discussions.apple.com/thread.jspa?threadID=1964018] should be considered when backing up a FileVault.

May 17, 2010 7:12 AM in response to etresoft

etresoft wrote:
. . .
I can definitely say that you can restore individual files, even if you can't do it through Time Machine. Just open the backup sparse bundle file in the Finder, enter your password, find your files, and copy them out.


That's certainly not easy, or recommended. You may have permissions problems with the copied files, especially in a multi-user setup. Time Machine puts very restrictive ACLs on the backups.

May 17, 2010 8:22 AM in response to etresoft

Thomas A Reed wrote:
it should be noted that messing with Time Machine backups in the Finder is dangerous... if you change anything, you break the whole thing.


Bah! I do it all the time.

Pondini wrote:
That's certainly not easy, or recommended. You may have permissions problems with the copied files, especially in a multi-user setup. Time Machine puts very restrictive ACLs on the backups


Again, Bah! It's easy and I do it all the time.

May 17, 2010 8:32 AM in response to etresoft

etresoft wrote:
Pondini wrote:
That's certainly not easy, or recommended. You may have permissions problems with the copied files, especially in a multi-user setup. Time Machine puts very restrictive ACLs on the backups


Again, Bah! It's easy and I do it all the time.


There are any number of posts here by folks who've had all sorts of troubles with things copied from their backups. If it works for you, great! But for many others, perhaps less sophisticated, it doesn't.

May 17, 2010 9:14 AM in response to etresoft

etresoft wrote:
Pondini and Thomas,
Do you have any better suggestions that Michael could use to restore his two files? If so, I'm sure he would love to hear them.


If we did, don't you think we would have mentioned them already?

+File Vault+ makes an encrypted disk image of your home folder; that's what is saved when you log out.

When you log on it's decrypted; that version is not saved by Time Machine, of course, as that would defeat the whole purpose of encrypting it.

Encrypted or not, you cannot get at the contents of a disk image without opening it.

Perhaps you missed Thomas's first post:
Unfortunately, that is not a possibility when you use FileVault. Time Machine can only restore an entire home folder when you're using FileVault. It cannot access individual files within the backup.

May 30, 2010 9:21 PM in response to thomas_r.

I am new to Mac OS X and have been experimenting with File Vault and Time Machine. It seems to me that TM only keeps the latest version of the encrypted Home folder, and does not have different versions of backup going back in time. Is this how TM is supposed to work with File Vault? If yes, and I delete a file - will it be deleted from the backup next time user logs out and TM backup is run?

May 31, 2010 8:37 AM in response to Dimitri B

Dimitri B wrote:
I am new to Mac OS X and have been experimenting with File Vault and Time Machine. It seems to me that TM only keeps the latest version of the encrypted Home folder, and does not have different versions of backup going back in time. Is this how TM is supposed to work with File Vault?


No. Each time you log out, TM should back up the encrypted version of your home folder (unless you cancel it). Other backups may occur while you're logged-on, or while a different user is logged on, but your home folder will not be backed up then -- those backups will show the "sparse bundle" containing your home folder as it was the last time IT was actually backed-up.

You cannot see inside the sparse bundle via Time Machine, but each one that's actually backed-up is different. If you select your internal HD, then +Enter Time Machine,+ and browse your backups, you'll see the sparse bundle in your user account for each backup. The +Date Modified+ should be different for each time the sparse bundle was backed-up, but not when it wasn't.

Backups done at other times, while you were logged on, or while a different user was logged-on, will show the previous, unchanged version.

If yes, and I delete a file - will it be deleted from the backup next time user logs out and TM backup is run?


It won't be included the next backup of course, but the previous versions of the sparse bundle will remain on your system for a time. That varies, as TM periodically deletes backups. See #12 in Time Machine - Frequently Asked Questions (or use the link in *User Tips* at the top of this forum).

Time Machine and File Vault

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.