Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have several files that I need to keep encrypted on my home hard disk.

I currently use a TrueCrypt file container, currently around 100MB in size. I need to backup this file daily, and I'm looking for an incremental backup solution.

I read that on encrypted volumes even a small change in a file would change the whole volume and prevent the use of an efficient incremental backup solution. Any ideas how to backup in this case in an efficient way which would allow incremental solution?

I currently use TrueCrypt as my backup solution and CrashPlan as my backup utility, but I'm willing to experiment with alternatives.

share|improve this question
    
What operating system? –  Robert Jul 8 '11 at 18:01
    
Could you do an incremental backup into another container? So if you have 7 containers, Mon, Tues, Wed, Thurs, Fri, Sat, Sun then you can mount the appropriate drive each day to drive X. Use SyncBACK or similar to do an incremental backup to these containers. That way you have a rolling 7 day backup. It's just like having a Tape Back Up but encrypted and all digital. –  kobaltz Jul 8 '11 at 18:04
    
Robert, the OS is Currently windows. kobaltz, I'm using an automated backup solution (If I had to trust myself, I would backup for a week and then forget about it. –  Mosh Jul 8 '11 at 19:11
    
Robert, as I mentioned below, adding a 14 bytes file ("hello world" of course) changes 22K bytes in the container. Adding a 1MB word file sends my diff application to 100% CPU hell, so I guess the change is a major one. –  Mosh Jul 8 '11 at 19:20
    
Gareth, can you help me edit some other stuff? I'm writing an introduction for an article and I can use some help. ;) –  Mosh Jul 9 '11 at 6:19

3 Answers 3

First, not the whole container is changed when you edit a small file. This often comes up in connection with Dropbox. Dropbox only uploades changed blocks (TrueCrypt encryption is block cipher) from the Container. Here is a thread in the dropbox forum talking about that. But I don't know if there are incremental backup solutions sophisticated enough to look for changed blocks in files.

Second, you could take a backup of the mounted container on another encrypted drive. Standard backup software should suffice.

share|improve this answer
    
Thank you for your quick reply. See my comment to Robert. I use automated backup tool and I can't keep my container mounted all the time, since it defeats the whole purpose of encryption. –  Mosh Jul 8 '11 at 19:06

As changes in the Truecrypt volume only occur to regions where file changes has been written to, an efficient backup tool that detects binary differences for incremental backups should do the job.

What tool in detail depends on your operating system.

share|improve this answer
    
Thanks for the reply. I tried to add a small text file ("Hello world") to an encrypted container and it changed 22K bytes. Not such a small change for a 14 bytes file. –  Mosh Jul 8 '11 at 19:09
    
Don't forget that also the MFT containing the file attributes will change, the NTFS journal has changed and Windows may also change data in the SystemVolumeInformation directory. –  Robert Jul 9 '11 at 11:04

You said you're using Crashplan. It does byte-level analysis of the changes within files and stores only the changes within each file, so you're already getting the benefit of an incremental backup.

If you're worried that adding a 14 byte file within a TrueCrypt container changes 22K bytes in the container, that's because very small files will produce disproportionately large changes to the filesystem. For example, the filesystem might be using 16K clusters, so the smallest file will affect a 16K block. In addition, the metadata and journaling adds more overhead. Try adding a 200K file, and the overhead will be proportionately much smaller.

share|improve this answer
    
As I mentioned in the comments, adding a 1MB Word file sends my computer into the 100% CPU hell when I'm trying to diff the containers. The problem is with the encryption, where every small change make a disproportional huge change. I was wondering if there is a better encryption method which will be easier on incremental backup. –  Mosh Jul 17 '11 at 13:38
    
Crashplan's diff algorithm probably performs a lot better than the diff utility you used. Like other similar backup services, they not only have a well-tuned algorithm, but they maintain metadata to help subsequent updates run fast. Did you notice any actual performance problems with Crashplan and small file updates? I think you're unnecessarily worried about performance. –  Mike Rowave Jul 29 '11 at 1:29

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.