Is there a good way to incrementally sync truecrypt containers? I currently have large containers (200gb+), and I'd like to find a way to back them up without having to mount them. Rsync seems to not be able to sync incrementally and instead tries to re-transfer the whole container each time even when only a single file inside the container changed.

Is there some rsync patch or some specific option to make rsync look harder for differences instead of transferring the whole file? Or, is there some better tool to do this?

link|improve this question

73% accept rate
Were the two containers created separately or was one a copy of the other. I think if they were created separately they will be different due to the random data you enter when you created them whereas if one was a copy of the other the rsync might (I'm guessing) work better. – Col Aug 14 '11 at 8:39
It was a copy. Then, I changed one file in the original container. – vonhogen Aug 14 '11 at 20:52
feedback

2 Answers

Unfortunately, due to the nature of stream encryption, it is not possible to incrementally back up an encrypted volume. This is because the entirety of the volume is cryptographically dependent on each individual part. This is for security reasons. You will need to either decrypt the container, or copy the container entirely each time.

link|improve this answer
2  
Actually, if only the changed sections of the file are transferred then that should work. Also, TrueCrypt works on a per-block basis meaning that only those blocks with data that has been changed get modified -- updating the entire 200+ GB container file for a single changed byte would require far too many processor and disk I/O resources to be practical. – Randolf Richardson Aug 14 '11 at 6:40
feedback

RSync is a good tool for this because of its "delta-transfer" feature (which is enabled by default) that only transfers changed sections of files.

The fact that your file is at least 200 GBs means that when RSync reads the entire file to detect changes, it's likely that you're getting the impression that the whole file may be getting transferred instead of only its changes.

link|improve this answer
I have the -P option turned on, so I can see the amount being transferred. It is transferring all 200gb by my calculations (the time also suggests this since it's indicating 4-5 more hours to go). I only changed one 30mb file within the container. – vonhogen Aug 14 '11 at 6:57
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.