rt_archive - create an archive of many files
rt_archive [OPTIONS] FILES... rt_archive [OPTIONS] --pipe [PROGRAM [ARGS...]]
rt_archive is a front-end to various archive and compression programs. It allows one to create archives of files in various formats using a common command-line interface.
Currently supported archivers/compressors are zip, tar, cpio, compress, gzip and bzip2.
The file names to be archived may be supplied on the command line, in a file (see --from-file option), on standard input, or by another program's standard output (see --pipe option). Note that directories are not added recursively, each file must be explicitely listed.
# Archive all *.c files in current directory rt_archive -o foo.tar.gz *.c # Recursively archive all *.c files below current directory rt_archive -o foo.tar.bz2 --pipe find -name '*.c' # Various ways to archive files whose names are in another file rt_archive --from-file list.txt -o foo.zip rt_archive -o foo.zip --pipe cat list.txt rt_archive -o foo.zip --pipe <list.txt cat list.txt | rt_archive -o foo.zip --pipe
Print a help message and exit.
Print version information and exit.
Print debug logs on standard error; this option may be repeated to increase the log level.
Read file names from this file, in addition to other file names provided on the command line, stdin, etc.
Read file names from stdanard input, or if a program is given, from that program's standard output.
Change into this directory before starting PROGRAM or before starting to read STDIN, when --pipe is in effect.
Assume input file names are relative to this directory, rather than "."
Shorthand for --basedir=DIRECTORY --progdir=DIRECTORY
.
Prefix each file name with PREFIX, which must end with a "/".
Name of output archive file; without this option the output will be printed to stdout (unless it's a terminal, in which case rt_archive will exit with an error message).
The output format will be guessed from FILE's suffix, unless --format is given.
Output archive file format, must be one of zip, tar, tar.Z, tar.gz, tar.bz2, cpio, cpio.Z, cpio.gz, cpio.bz2.
If not given, it will be guessed from the output file's suffix.
Save temporary files in this directory.
Davlet Panech - dpanech at users dot sourceforge dot net
Copyright 2010 Davlet Panech.
Rpmtoolbox is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Rpmtoolbox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with rpmtoolbox. If not, see <www.gnu.org>.