You are not logged in.
I want to rsync data into a Truecrypt container. However, since the data consists of highly compressable files (text), I'd like to compress everything on the fly too, while the files are being written to the Truecrypt volume. Filesystems are ext4.
How would I do the "transparent compression" thingy?
Last edited by mir91 (2014-10-14 08:14:15)
Offline
You have two different options; compress each file individually, or create a single file from all files and compress that. The first variant allows you to access single files, but takes more space. The second variant results in better compression but you need to uncompress everything to access a single file. Using rsync is only possible with the first variant, as rsync deals with individual files.
http://serverfault.com/questions/154254 … be-fastest
Offline
Hmm thanks, but if I understood that link correctly, it's a bit different from what I intend to do. I think my op was maybe written a bit misleading. What I meant is:
I want inside of the truecrypt container an ext4 filesystem that is actually compressed. So rsync, cp, dd etc can be used normally to write to it, yet it can hold more data than the container size (if the data is nicely compressible).
Offline
Btrfs supports transparent file compression.
https://btrfs.wiki.kernel.org/index.php/Compression
Zfs on linux, too.
Offline