ob / tbdd

tarball de-duplicator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tbdd: tarball de-duplicator

tbdd is a simple tarball de-duplicator. It unpacks a .tar.gz file and stores the data as the SHA256 of the contents so that duplicate data is only stored once. It replaces the data with a pointer to the stored data. When the tarball is requested later, it is reconstructed from the metadata and stored data.

Note that the tarball returned by tbdd might not be identical to the one stored in it due to compression levels. The contents should be identical though.

API

Save a tarball

curl --upload-file sample.tar.gz http://tbdd.local/sample.tar.gz

Fetch a tarball

curl -s http://tbdd.local/sample.tar.gz | tar xvfz -

About

tarball de-duplicator

License:Apache License 2.0


Languages

Language:Go 41.7%Language:Shell 41.1%Language:Dockerfile 17.1%