Skip to content

Repository files navigation

bash-extractor

A bash extractor generation script. It embeds a tar.gz binary file into a bash script, making a self-extracting tar.gz. Extracts to a temporary directory in /var/tmp/. Allows addition of an additional script to run after extraction; this allows for completely automated restores for example.

Usage

Run as follows.../

 git clone git://github.com/TrentonAdams/bash-extractor.git
cd bash-extractor
./gen-extractor.sh my.tar.gz

Credits/License

Taken from lembra's blog, though the original source looks likely to be the Linux Journal

Since there does not seem to be any indication of a license from the sources, this source is apparently public domain.

About

A bash extractor generation script. It embeds a tar.gz binary file into a bash script, making a self-extracting tar.gz, which can also run a script upon extraction.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages