Skip to content

fossabot/TarCompressCrypt

 
 

Repository files navigation

TarCompressCrypt

Build status codecov Sonarcloud coverage Sonarcloud Status Sonarcloud Debt Sonarcloud Vulnerabilities FOSSA Status

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.

How to install :

  • Install the .NET Core 2.1 Runtime

  • 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
    

Recommendations :

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.

Current status :

  • alpha : 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.

Roadmap :

  • password file / asymetric key support
  • packaging + distribution
  • lz4 / brotli / zstd support
  • benchmark mode
  • operation logs
  • differential backup
  • documentation
  • external storage provider support

Plateform support :

  • Windows
  • Linux

Dependencies :

This project relies on the following external dependencies :

On windows :

All dependencies are downloaded on 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/

License

FOSSA Status

About

TCC : blazing fast compression / decompression / encryption

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%