Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

tar-split

Archive a large directory in manageable chunks.

Generate

./generate large-directory/

A set of tar files called file-[\d].tar will be created in this directory.

Extract

All segments of the chunked archive must be present to untar.

If the tar files are gzipped or otherwise compressed, uncompress them back to tarballs first. They cannot, however, be individually untarred.

./extract

The archives will be extracted relative to this directory.

Credit & License

Credit belongs to enzotib and Nemo on StackExchange. Licensed under CC 3.0 By-SA.