TarCompressCrypt (TCC) is a command line tool for blazing fast compression + encryption / decompression + decryption
- package multiple files / folders with tar
- then use lz4/zstd/brotli for blazing fast compression operations
- then use openssl for aes256 encryption (native aes-ni instructions support)
Basically, TCC job's is to pipe ( |
) tar, compressor and openssl commands. Natives and official implementations of each command are used for maximum performance.
The other TCC purpose is to prepare the compression job with different strategies. You can create an archive for each folder found in the source folder, and choose how many parallel threads to process the batch for maximum throughput. You can either saturate disk iops, or the CPU depending on your settings, or choose to keep some room on your servers.
TCC is actually used for off-site backup operations on production servers.
-
Install the .NET Core 3.1 SDK
-
Install TCC as global tool :
dotnet tool install -g TCC
-
Run TCC in command line :
tcc --help
-
Don't hesitate to use the benchmark mode on your data to find the better speed / compression tradeoff in your case :
tcc benchmark C:\ToBackupFolder
Compress a data.txt file :
tcc compress data.txt -a Zstd -o Folder
Decompress a file :
tcc decompress data_20201223101528.full.tarzstd -o C:\d\folder
For maximum performances, you have to backup files from one physical disk, and output archives on another physical disk : iops are the main bottleneck even on a recent SSD.
- beta : use with care, API and archive format are subject to breaking changes. Be sure to keep the version you use actually to be able to decrypt your archives.
- password file / asymetric key support
- packaging + distribution
- lz4 / brotli / zstd support
- benchmark mode
- operation logs
- differential backup
- external storage provider support
- Windows
- Linux
This project relies on the following external dependencies :
On windows :
- Tar v1.30 : extracted from the msys2 build of git for windows 2.19.1
- OpenSsl v1.1.1 : from bintray referenced in official wiki
- Zstandard v1.4.8 : from facebook Zstandard github repo
- Brotli v1.0.4 : from google Brotli github repo
- Lz4 v1.8.3 : from Lz4 github repo
All dependencies are downloaded on the first TCC start, and are not included in TCC repository, except tar (for now) Please consult the different project licences.
TCC is inspired from the excellent Squash Compression Benchmark : https://quixdb.github.io/squash-benchmark/