A collection of POSIX shell scripts to invoke archiver programs
Author: Martin Väth email@example.com
This project is under the BSD license.
These are some POSIX shell scripts which form an interface to various archiver programs like
For unpacking even some more formats are supported (if binaries are available).
It is in particular possible to invoke all archivers (keeping only the "best" result), to repack archives, pack to remote hosts etc. Note that also less popular archivers are supported.
A lot of options control the details; since the scripts are mainly written
for myself, they are not too well documented.
-h to obtain help.
push.sh from https://github.com/vaeth/push (v2.0 or newer)
For installation. just put the content of
bin somewhere in your
Also put the files of the subdirectory
zsh into your zsh's
$fpath to obtain
zsh completion support. (If you do not have root access, you can add the
corresponding directory with
fpath+=("...") before you
compdef from your zsh initialization files).
If you do have root access it is recommended to put the files
not into the
/usr/bin) but instead into
/usr/share/archwrap/ and to modify the line
in the binaries into
If you do not want to put the symlinks into your path, you can
archwrap_alias file (in a shell understanding the alias command)
to obtain a similar effect in an interactive shell.
For installation under Gentoo, there is an ebuild in the
A standard usage is as follows
Pack directory(s) with all subdirectories with all archiver programs (each directory is put into a separate archive) and keep only the "best" version. Lots of options control the details: Invoke
ppdwithout any arguments for a list of them.
ppd(in contrast to
pd) only attempts the most popular archivers.
tgzddirectory(s) (actually uses zopfli unless
ppdbut invokes only the corresponding archiver program. Different options are available, depending on the archiver program.
udARCHIVE(s) Generate the directory(s) ARCHIVE and unpack ARCHIVE
.??? into it. This works for all archive formats (with proper name extension). Invoke
udwithout any arguments for a complete list of options.
List content of ARCHIVE(s) (briefly or verbosely, respectively). This works for all supported archive formats whose archivers have corresponding options.
Test integrity of ARCHIVE(s). This works for all supported archive formats whose archivers have corresponding options.
2ppdARCHIVE(s) First unpack ARCHIVE and then pack it again with all/popular archivers, keeping only the "best" version. Invoke
2pdwithout any arguments for a complete list of options.
tbzd -C -R - / | sshcat user@host:backup.tar.bz2
Make a compressed backup of the whole filesystem to a file on a remote host.