Skip to content

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.

Notifications You must be signed in to change notification settings

TrentonAdams/bash-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages