You are not logged in.

#1 2014-10-14 08:13:43

mir91
Banned
Registered: 2013-11-17
Posts: 143

Compressing data written to Truecrypt container by rsync

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

#2 2014-10-15 10:03:27

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Compressing data written to Truecrypt container by rsync

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

#3 2014-10-15 20:16:54

mir91
Banned
Registered: 2013-11-17
Posts: 143

Re: Compressing data written to Truecrypt container by rsync

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

#4 2014-10-15 21:46:20

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Compressing data written to Truecrypt container by rsync

Btrfs supports transparent file compression.
https://btrfs.wiki.kernel.org/index.php/Compression
Zfs on linux, too.

Offline

Board footer

Powered by FluxBB