Skip to content
Random access to tar archives
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
tar2index.py

README.md

tar_indexer repository

TAR indexer uses sqlite3 for index storing and allows indexing of multiple tar archives.
Note, only raw (uncompressed) tar files are accepted as native tar.gz cannot be random accessed.
But you can compress each file using zlib before adding it to tar.

# index content of multiple tar archives
tar2index.py -v -i db_*/*.tar -d archives.db3

# search for some_file in mutliple archives
tar2index.py -v -f some_file -d archives.db3

Prerequisites

  • Python 2.7+
  • sqlite3 sudo apt-get install python-sqlite
You can’t perform that action at this time.