1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
.\" Hey, EMACS: -*- nroff -*-
.TH ftar 8 "29 July 2010"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
ftar \- extract tar files using classes
.SH SYNOPSIS
.B ftar
.RI [ options ] " SOURCE"
.SH DESCRIPTION
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.
.SH OPTIONS
.TP
Options \-c, \-s, \-t (or their analog variables) and a SOURCE are required.
.TP
.BI \-1
Use only one archive file matching a class name.
.TP
.BI "\-c " class[class]
Define classes. Multiple classes must be space separated. The first class
has the lowest priority. If not specified, use the classes from
the file /tmp/FAI_CLASES.
.TP
.B \-d
Delete all files in target directory before extracting the archive(s).
.TP
.B \-D
Create debugging output.
.TP
.B \-h
Show help, version and summary of options.
.TP
.B \-i
Ignore warnings about no matching class and always exit with 0.
.TP
.B \-r
Recursively remove files in target directory before extracting archive.
.TP
.BI "\-s " source_dir
Look for SOURCE files relative to \fIsource_dir\fR. Use $FAI/files if
not specified.
.TP
.BI "\-t " target_dir
Extract archives relative to \fItarget_dir\fR. Use $FAI_ROOT if not specified.
.TP
.B \-v
Be verbose. Not yet used.
.SH EXAMPLES
.br
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.
.SH NOTES
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.
.SH SEE ALSO
.PD 0
\fIfcopy\fP(8)
.br
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.
.SH AUTHOR
Thomas Lange <lange@cs.uni-koeln.de>
|