ftar(8) | System Manager's Manual | ftar(8) |
ftar - extract tar files using classes
ftar [options] SOURCE
Extract an archive from SOURCE to its target directory using classes.
SOURCE is a directory which contains one or more template files for the source archive to extract. Depending on the list of defined classes, one or more archives of the source directory are selected and extracted to the target. The base target directory is the name of the source directory. Template files must have suffix .tar, .tgz, .tar.gz, .tar.xz, .txz, .tbz2 or .tar.bz2 depending on the type of archive.
The exit code returned by ftar is mostly 0. For every successfully extracted tar file, a log message is printed to standard output.
Suppose the source directory /files/usr/local consists of the following files:
DATALESS.tar.gz ant01.tar.bz2
Each file is a compressed archive. If only class DATALESS is defined, the following command
# ftar -s /files -t /target /usr/local
is equal to
# tar -C /target/usr/local -zxf /files/usr/local/DATALESS.tar.gz
If additionally class ant01 is defined, the following command is also executed
# tar -C /target/usr/local -jxf /files/usr/local/ant01.tar.bz2
If only one archive should be extracted, the class with highest priority is used.
Do not create a file DEFAULT if no reasonable default configuration file can be used. It's better to exit with an error than to extract a wrong archive.
This command can also be used to maintain your complete directory trees on a huge number of hosts.
This program is part of FAI (Fully Automatic Installation). See the FAI manual for more information on how to use ftar. The FAI homepage is https://fai-project.org.
Thomas Lange <lange@informatik.uni-koeln.de>
29 July 2010 |