dac2710
.\" This file was originally generated by help2man
e6f5bb4
.TH TAR "1" "November 2013" "tar 1.27.1" "User Commands"
Radek Brich 344a711
.SH NAME
bd10313
tar \- an archiver tool
Radek Brich 344a711
.SH SYNOPSIS
Radek Brich 344a711
.B tar
7b35b1d
[\fIOPTION\fR...] [\fIFILE\fR]...
Radek Brich 344a711
.SH DESCRIPTION
e6f5bb4
GNU 'tar' saves many files together into a single tape or disk archive, and can
7b35b1d
restore individual files from the archive.
dac2710
dac2710
Note that this manual page contains just very brief description (or more like
dac2710
a list of possible functionality) originally generated by the
dac2710
.B
dac2710
help2man
dac2710
utility.  The full documentation for
dac2710
.B tar
dac2710
is maintained as a Texinfo manual.  If the
dac2710
.B info
dac2710
and
dac2710
.B tar
dac2710
programs are properly installed at your site, the command
e6f5bb4
.B 'info tar'
dac2710
should give you access to the complete manual.
Radek Brich 344a711
.SH EXAMPLES
Radek Brich 344a711
.TP
7b35b1d
tar \fB\-cf\fR archive.tar foo bar
7b35b1d
# Create archive.tar from files foo and bar.
Radek Brich 344a711
.TP
7b35b1d
tar \fB\-tvf\fR archive.tar
7b35b1d
# List all files in archive.tar verbosely.
Radek Brich 344a711
.TP
7b35b1d
tar \fB\-xf\fR archive.tar
7b35b1d
# Extract all files from archive.tar.
7b35b1d
.IP
dac2710
.SH DEFAULTS
dac2710
*This* tar installation defaults to:
dac2710
dac2710
\fB\-\-format\fR=\fIgnu\fR \fB\-f\-\fR \fB\-b20\fR \fB\-\-quoting\-style\fR=\fIescape\fR \fB\-\-rmt\-command=\fR/sbin/rmt
dac2710
\fB\-\-rsh\-command=\fR/usr/bin/rsh
7f322ff
.SH \fBMain operation mode:\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-A\fR, \fB\-\-catenate\fR, \fB\-\-concatenate\fR
Radek Brich 344a711
append tar files to an archive
Radek Brich 344a711
.TP
7b35b1d
\fB\-c\fR, \fB\-\-create\fR
Radek Brich 344a711
create a new archive
Radek Brich 344a711
.TP
7b35b1d
\fB\-d\fR, \fB\-\-diff\fR, \fB\-\-compare\fR
Radek Brich 344a711
find differences between archive and file system
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-delete\fR
7b35b1d
delete from the archive (not on mag tapes!)
7b35b1d
.TP
7b35b1d
\fB\-r\fR, \fB\-\-append\fR
Radek Brich 344a711
append files to the end of an archive
Radek Brich 344a711
.TP
7b35b1d
\fB\-t\fR, \fB\-\-list\fR
Radek Brich 344a711
list the contents of an archive
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-test\-label\fR
7b35b1d
test the archive volume label and exit
Radek Brich 344a711
.TP
7b35b1d
\fB\-u\fR, \fB\-\-update\fR
7b35b1d
only append files newer than copy in archive
Radek Brich 344a711
.TP
7b35b1d
\fB\-x\fR, \fB\-\-extract\fR, \fB\-\-get\fR
7b35b1d
extract files from an archive
7b35b1d
.IP
7f322ff
.SH \fBCommon options:\fR
Radek Brich 344a711
.TP
7b35b1d
\fB-C\fR, \fB--directory=DIR\fR
Radek Brich 344a711
change to directory DIR
Radek Brich 344a711
.TP
7b35b1d
\fB-f\fR, \fB--file=ARCHIVE\fR
7b35b1d
use archive file or device ARCHIVE
7b35b1d
.TP
7b35b1d
\fB-j\fR, \fB--bzip2\fR
7b35b1d
filter the archive through bzip2
Radek Brich 344a711
.TP
7b35b1d
\fB -J\fR, \fB--xz\fR
7b35b1d
filter the archive through xz
Radek Brich 344a711
.TP
7b35b1d
\fB-p\fR, \fB--preserve-permissions\fR
7b35b1d
extract  information  about  file permissions (default for superuser)
Radek Brich 344a711
.TP
7b35b1d
\fB-v\fR, \fB--verbose\fR
Radek Brich 344a711
verbosely list files processed
Radek Brich 344a711
.TP
7b35b1d
\fB-z\fR, \fB--gzip\fR
Radek Brich 344a711
filter the archive through gzip
7b35b1d
7f322ff
.SH \fBOperation modifiers:\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-check\-device\fR
7b35b1d
check device numbers when creating incremental
7b35b1d
archives (default)
Radek Brich 344a711
.TP
7b35b1d
\fB\-g\fR, \fB\-\-listed\-incremental\fR=\fIFILE\fR
7b35b1d
handle new GNU\-format incremental backup
Radek Brich 344a711
.TP
7b35b1d
\fB\-G\fR, \fB\-\-incremental\fR
7b35b1d
handle old GNU\-format incremental backup
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-ignore\-failed\-read\fR
7b35b1d
do not exit with nonzero on unreadable files
Radek Brich 344a711
.TP
b6f2262
\fB\-\-level\fR=\fINUMBER\fR
b6f2262
dump level for created listed\-incremental archive
b6f2262
.TP
7b35b1d
\fB\-n\fR, \fB\-\-seek\fR
7b35b1d
archive is seekable
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-no\-check\-device\fR
7b35b1d
do not check device numbers when creating
7b35b1d
incremental archives
Radek Brich 344a711
.TP
b6f2262
\fB\-\-no\-seek\fR
b6f2262
archive is not seekable
b6f2262
.TP
7b35b1d
\fB\-\-occurrence\fR[=\fINUMBER\fR]
7b35b1d
process only the NUMBERth occurrence of each file
7b35b1d
in the archive; this option is valid only in
7b35b1d
conjunction with one of the subcommands \fB\-\-delete\fR,
7b35b1d
\fB\-\-diff\fR, \fB\-\-extract\fR or \fB\-\-list\fR and when a list of
7b35b1d
files is given either on the command line or via
7b35b1d
the \fB\-T\fR option; NUMBER defaults to 1
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-sparse\-version\fR=\fIMAJOR[\fR.MINOR]
7b35b1d
set version of the sparse format to use (implies
7b35b1d
\fB\-\-sparse\fR)
Radek Brich 344a711
.TP
7b35b1d
\fB\-S\fR, \fB\-\-sparse\fR
7b35b1d
handle sparse files efficiently
7b35b1d
.IP
7f322ff
.SH \fBOverwrite control:\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-k\fR, \fB\-\-keep\-old\-files\fR
dac2710
don't replace existing files when extracting,
dac2710
treat them as errors
Radek Brich 344a711
.TP
e6f5bb4
\fB\-\-keep\-directory\-symlink\fR
e6f5bb4
preserve existing symlinks to directories when
e6f5bb4
extracting
e6f5bb4
.TP
7b35b1d
\fB\-\-keep\-newer\-files\fR
7b35b1d
don't replace existing files that are newer than
7b35b1d
their archive copies
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-no\-overwrite\-dir\fR
7b35b1d
preserve metadata of existing directories
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-overwrite\fR
7b35b1d
overwrite existing files when extracting
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-overwrite\-dir\fR
7b35b1d
overwrite metadata of existing directories when
7b35b1d
extracting (default)
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-recursive\-unlink\fR
7b35b1d
empty hierarchies prior to extracting directory
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-remove\-files\fR
7b35b1d
remove files after adding them to the archive
Radek Brich 344a711
.TP
dac2710
\fB\-\-skip\-old\-files\fR
dac2710
don't replace existing files when extracting,
dac2710
silently skip over them
dac2710
.TP
7b35b1d
\fB\-U\fR, \fB\-\-unlink\-first\fR
7b35b1d
remove each file prior to extracting over it
Radek Brich 344a711
.TP
7b35b1d
\fB\-W\fR, \fB\-\-verify\fR
7b35b1d
attempt to verify the archive after writing it
7b35b1d
.IP
7f322ff
.SH \fBSelect output stream:\fR
7b35b1d
.HP
7b35b1d
\fB\-\-ignore\-command\-error\fR ignore exit codes of children
7b35b1d
.TP
7b35b1d
\fB\-\-no\-ignore\-command\-error\fR
7b35b1d
treat non\-zero exit codes of children as
7b35b1d
error
Radek Brich 344a711
.TP
7b35b1d
\fB\-O\fR, \fB\-\-to\-stdout\fR
7b35b1d
extract files to standard output
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-to\-command\fR=\fICOMMAND\fR
7b35b1d
pipe extracted files to another program
7b35b1d
.IP
130db74
.SH \fBHandling of file attributes:\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-atime\-preserve\fR[=\fIMETHOD\fR]
7b35b1d
preserve access times on dumped files, either
7b35b1d
by restoring the times after reading
7b35b1d
(METHOD='replace'; default) or by not setting the
7b35b1d
times in the first place (METHOD='system')
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-delay\-directory\-restore\fR
7b35b1d
delay setting modification times and
7b35b1d
permissions of extracted directories until the end
7b35b1d
of extraction
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-group\fR=\fINAME\fR
7b35b1d
force NAME as group for added files
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-mode\fR=\fICHANGES\fR
7b35b1d
force (symbolic) mode CHANGES for added files
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-mtime\fR=\fIDATE\-OR\-FILE\fR
7b35b1d
set mtime for added files from DATE\-OR\-FILE
Radek Brich 344a711
.TP
7b35b1d
\fB\-m\fR, \fB\-\-touch\fR
Radek Brich 344a711
don't extract file modified time
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-no\-delay\-directory\-restore\fR
7b35b1d
cancel the effect of \fB\-\-delay\-directory\-restore\fR
7b35b1d
option
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-no\-same\-owner\fR
b6f2262
extract files as yourself (default for ordinary
b6f2262
users)
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-no\-same\-permissions\fR
7b35b1d
apply the user's umask when extracting permissions
7b35b1d
from the archive (default for ordinary users)
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-numeric\-owner\fR
7b35b1d
always use numbers for user/group names
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-owner\fR=\fINAME\fR
7b35b1d
force NAME as owner for added files
Radek Brich 344a711
.TP
7b35b1d
\fB\-p\fR, \fB\-\-preserve\-permissions\fR, \fB\-\-same\-permissions\fR
7b35b1d
extract information about file permissions
7b35b1d
(default for superuser)
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-preserve\fR
7b35b1d
same as both \fB\-p\fR and \fB\-s\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-same\-owner\fR
b6f2262
try extracting files with the same ownership as
b6f2262
exists in the archive (default for superuser)
Radek Brich 344a711
.TP
7b35b1d
\fB\-s\fR, \fB\-\-preserve\-order\fR, \fB\-\-same\-order\fR
e6f5bb4
member arguments are listed in the same order as
e6f5bb4
the files in the archive
130db74
.IP
130db74
.SH \fBHandling of extended file attributes:\fR
130db74
.TP
130db74
\fB\-\-acls\fR
130db74
Enable the POSIX ACLs support
130db74
.TP
130db74
\fB\-\-no\-acls\fR
130db74
Disable the POSIX ACLs support
130db74
.TP
130db74
\fB\-\-no\-selinux\fR
130db74
Disable the SELinux context support
130db74
.TP
130db74
\fB\-\-no\-xattrs\fR
130db74
Disable extended attributes support
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-selinux\fR
130db74
Enable the SELinux context support
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-xattrs\fR
130db74
Enable extended attributes support
130db74
.TP
130db74
\fB\-\-xattrs\-exclude\fR=\fIMASK\fR
130db74
specify the exclude pattern for xattr keys
130db74
.TP
130db74
\fB\-\-xattrs\-include\fR=\fIMASK\fR
130db74
specify the include pattern for xattr keys
7b35b1d
.IP
7f322ff
.SH \fBDevice selection and switching:\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-f\fR, \fB\-\-file\fR=\fIARCHIVE\fR
7b35b1d
use archive file or device ARCHIVE
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-force\-local\fR
7b35b1d
archive file is local even if it has a colon
Radek Brich 344a711
.TP
7b35b1d
\fB\-F\fR, \fB\-\-info\-script\fR=\fINAME\fR, \fB\-\-new\-volume\-script\fR=\fINAME\fR
7b35b1d
run script at end of each tape (implies \fB\-M\fR)
Radek Brich 344a711
.TP
7b35b1d
\fB\-L\fR, \fB\-\-tape\-length\fR=\fINUMBER\fR
7b35b1d
change tape after writing NUMBER x 1024 bytes
Radek Brich 344a711
.TP
7b35b1d
\fB\-M\fR, \fB\-\-multi\-volume\fR
7b35b1d
create/list/extract multi\-volume archive
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-rmt\-command\fR=\fICOMMAND\fR
7b35b1d
use given rmt COMMAND instead of rmt
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-rsh\-command\fR=\fICOMMAND\fR
7b35b1d
use remote COMMAND instead of rsh
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-volno\-file\fR=\fIFILE\fR
7b35b1d
use/update the volume number in FILE
7b35b1d
.IP
7f322ff
.SH \fBDevice blocking:\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-b\fR, \fB\-\-blocking\-factor\fR=\fIBLOCKS\fR
7b35b1d
BLOCKS x 512 bytes per record
Radek Brich 344a711
.TP
7b35b1d
\fB\-B\fR, \fB\-\-read\-full\-records\fR
7b35b1d
reblock as we read (for 4.2BSD pipes)
Radek Brich 344a711
.TP
7b35b1d
\fB\-i\fR, \fB\-\-ignore\-zeros\fR
7b35b1d
ignore zeroed blocks in archive (means EOF)
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-record\-size\fR=\fINUMBER\fR
7b35b1d
NUMBER of bytes per record, multiple of 512
7b35b1d
.IP
7f322ff
.SH \fBArchive format selection:\fR
7b35b1d
\fB\-H\fR, \fB\-\-format\fR=\fIFORMAT\fR
130db74
.RS
7b35b1d
create archive of the given format
130db74
.sp
7b35b1d
FORMAT is one of the following:
130db74
.RS
Radek Brich 344a711
.TP
7b35b1d
gnu
7b35b1d
GNU tar 1.13.x format
Radek Brich 344a711
.TP
7b35b1d
oldgnu
7b35b1d
GNU format as per tar <= 1.12
Radek Brich 344a711
.TP
7b35b1d
pax
7b35b1d
POSIX 1003.1\-2001 (pax) format
Radek Brich 344a711
.TP
7b35b1d
posix
7b35b1d
same as pax
Radek Brich 344a711
.TP
7b35b1d
ustar
7b35b1d
POSIX 1003.1\-1988 (ustar) format
Radek Brich 344a711
.TP
7b35b1d
v7
7b35b1d
old V7 tar format
130db74
.RE
130db74
.RE
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-old\-archive\fR, \fB\-\-portability\fR
7b35b1d
same as \fB\-\-format\fR=\fIv7\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-pax\-option\fR=\fIkeyword[[\fR:]=value][,keyword[[:]=value]]...
7b35b1d
control pax keywords
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-posix\fR
7b35b1d
same as \fB\-\-format\fR=\fIposix\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-V\fR, \fB\-\-label\fR=\fITEXT\fR
7b35b1d
create archive with volume name TEXT; at
7b35b1d
list/extract time, use TEXT as a globbing pattern
7b35b1d
for volume name
7b35b1d
.IP
7f322ff
.SH \fBCompression options:\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-a\fR, \fB\-\-auto\-compress\fR
7b35b1d
use archive suffix to determine the compression
7b35b1d
program
Radek Brich 344a711
.TP
7b35b1d
\fB\-I\fR, \fB\-\-use\-compress\-program\fR=\fIPROG\fR
7b35b1d
filter through PROG (must accept \fB\-d\fR)
Radek Brich 344a711
.TP
7b35b1d
\fB\-j\fR, \fB\-\-bzip2\fR
7b35b1d
filter the archive through bzip2
Radek Brich 344a711
.TP
b6f2262
\fB\-J\fR, \fB\-\-xz\fR
b6f2262
filter the archive through xz
b6f2262
.TP
b6f2262
\fB\-\-lzip\fR
b6f2262
filter the archive through lzip
b6f2262
.TP
7b35b1d
\fB\-\-lzma\fR
7b35b1d
filter the archive through lzma
b6f2262
.HP
b6f2262
\fB\-\-lzop\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-no\-auto\-compress\fR
7b35b1d
do not use archive suffix to determine the
7b35b1d
compression program
Radek Brich 344a711
.TP
7b35b1d
\fB\-z\fR, \fB\-\-gzip\fR, \fB\-\-gunzip\fR, \fB\-\-ungzip\fR
7b35b1d
filter the archive through gzip
Radek Brich 344a711
.TP
7b35b1d
\fB\-Z\fR, \fB\-\-compress\fR, \fB\-\-uncompress\fR
7b35b1d
filter the archive through compress
90dd1ca
.TP
90dd1ca
\fBNote: You might need to install external program (lzip/ncompress/lzma...) to use some of these compression options\fB
7b35b1d
.IP
7f322ff
.SH \fBLocal file selection:\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-add\-file\fR=\fIFILE\fR
7b35b1d
add given FILE to the archive (useful if its name
7b35b1d
starts with a dash)
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-backup\fR[=\fICONTROL\fR]
7b35b1d
backup before removal, choose version CONTROL
Radek Brich 344a711
.TP
7b35b1d
\fB\-C\fR, \fB\-\-directory\fR=\fIDIR\fR
7b35b1d
change to directory DIR
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-exclude\fR=\fIPATTERN\fR
7b35b1d
exclude files, given as a PATTERN
Radek Brich 344a711
.TP
b6f2262
\fB\-\-exclude\-backups\fR
b6f2262
exclude backup and lock files
b6f2262
.TP
7b35b1d
\fB\-\-exclude\-caches\fR
7b35b1d
exclude contents of directories containing
7b35b1d
CACHEDIR.TAG, except for the tag file itself
7b35b1d
.TP
7b35b1d
\fB\-\-exclude\-caches\-all\fR
7b35b1d
exclude directories containing CACHEDIR.TAG
7b35b1d
.TP
7b35b1d
\fB\-\-exclude\-caches\-under\fR exclude everything under directories containing
7b35b1d
CACHEDIR.TAG
7b35b1d
.TP
7b35b1d
\fB\-\-exclude\-tag\fR=\fIFILE\fR
7b35b1d
exclude contents of directories containing FILE,
7b35b1d
except for FILE itself
7b35b1d
.HP
7b35b1d
\fB\-\-exclude\-tag\-all\fR=\fIFILE\fR exclude directories containing FILE
7b35b1d
.TP
7b35b1d
\fB\-\-exclude\-tag\-under\fR=\fIFILE\fR
7b35b1d
exclude everything under directories
7b35b1d
containing FILE
7b35b1d
.TP
7b35b1d
\fB\-\-exclude\-vcs\fR
7b35b1d
exclude version control system directories
7b35b1d
.TP
7b35b1d
\fB\-h\fR, \fB\-\-dereference\fR
7b35b1d
follow symlinks; archive and dump the files they
7b35b1d
point to
7b35b1d
.TP
7b35b1d
\fB\-\-hard\-dereference\fR
7b35b1d
follow hard links; archive and dump the files they
7b35b1d
refer to
7b35b1d
.TP
7b35b1d
\fB\-K\fR, \fB\-\-starting\-file\fR=\fIMEMBER\-NAME\fR
e6f5bb4
begin at member MEMBER\-NAME when reading the
e6f5bb4
archive
7b35b1d
.TP
7b35b1d
\fB\-\-newer\-mtime\fR=\fIDATE\fR
7b35b1d
compare date and time when data changed only
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-no\-null\fR
7b35b1d
disable the effect of the previous \fB\-\-null\fR option
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-no\-recursion\fR
7b35b1d
avoid descending automatically in directories
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-no\-unquote\fR
7b35b1d
do not unquote filenames read with \fB\-T\fR
7b35b1d
.HP
7b35b1d
\fB\-\-null\fR                 \fB\-T\fR reads null\-terminated names, disable \fB\-C\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-N\fR, \fB\-\-newer\fR=\fIDATE\-OR\-FILE\fR, \fB\-\-after\-date\fR=\fIDATE\-OR\-FILE\fR
7b35b1d
only store files newer than DATE\-OR\-FILE
7b35b1d
.TP
7b35b1d
\fB\-\-one\-file\-system\fR
7b35b1d
stay in local file system when creating archive
7b35b1d
.TP
7b35b1d
\fB\-P\fR, \fB\-\-absolute\-names\fR
e6f5bb4
don't strip leading '/'s from file names
7b35b1d
.TP
7b35b1d
\fB\-\-recursion\fR
7b35b1d
recurse into directories (default)
7b35b1d
.TP
7b35b1d
\fB\-\-suffix\fR=\fISTRING\fR
7b35b1d
backup before removal, override usual suffix ('~'
7b35b1d
unless overridden by environment variable
7b35b1d
SIMPLE_BACKUP_SUFFIX)
7b35b1d
.TP
7b35b1d
\fB\-T\fR, \fB\-\-files\-from\fR=\fIFILE\fR
7b35b1d
get names to extract or create from FILE
7b35b1d
.TP
7b35b1d
\fB\-\-unquote\fR
7b35b1d
unquote filenames read with \fB\-T\fR (default)
7b35b1d
.TP
7b35b1d
\fB\-X\fR, \fB\-\-exclude\-from\fR=\fIFILE\fR
7b35b1d
exclude patterns listed in FILE
7b35b1d
.IP
7f322ff
.SH \fBFile name transformations:\fR
7b35b1d
.TP
7b35b1d
\fB\-\-strip\-components\fR=\fINUMBER\fR
7b35b1d
strip NUMBER leading components from file
7b35b1d
names on extraction
7b35b1d
.TP
7b35b1d
\fB\-\-transform\fR=\fIEXPRESSION\fR, \fB\-\-xform\fR=\fIEXPRESSION\fR
7b35b1d
use sed replace EXPRESSION to transform file
7b35b1d
names
7b35b1d
.IP
7b35b1d
File name matching options (affect both exclude and include patterns):
7b35b1d
.TP
7b35b1d
\fB\-\-anchored\fR
7b35b1d
patterns match file name start
7b35b1d
.TP
7b35b1d
\fB\-\-ignore\-case\fR
7b35b1d
ignore case
7b35b1d
.TP
7b35b1d
\fB\-\-no\-anchored\fR
e6f5bb4
patterns match after any '/' (default for
7b35b1d
exclusion)
7b35b1d
.TP
7b35b1d
\fB\-\-no\-ignore\-case\fR
7b35b1d
case sensitive matching (default)
7b35b1d
.TP
7b35b1d
\fB\-\-no\-wildcards\fR
7b35b1d
verbatim string matching
7b35b1d
.TP
7b35b1d
\fB\-\-no\-wildcards\-match\-slash\fR
e6f5bb4
wildcards do not match '/'
7b35b1d
.TP
7b35b1d
\fB\-\-wildcards\fR
7b35b1d
use wildcards (default)
7b35b1d
.TP
7b35b1d
\fB\-\-wildcards\-match\-slash\fR
e6f5bb4
wildcards match '/' (default for exclusion)
7b35b1d
.IP
7f322ff
.SH \fBInformative output:\fR
7b35b1d
.TP
7b35b1d
\fB\-\-checkpoint\fR[=\fINUMBER\fR]
7b35b1d
display progress messages every NUMBERth record
7b35b1d
(default 10)
7b35b1d
.TP
7b35b1d
\fB\-\-checkpoint\-action\fR=\fIACTION\fR
7b35b1d
execute ACTION on each checkpoint
7b35b1d
.TP
dac2710
\fB\-\-full\-time\fR
b4688f3
print file time to its full resolution
b4688f3
.TP
7b35b1d
\fB\-\-index\-file\fR=\fIFILE\fR
7b35b1d
send verbose output to FILE
7b35b1d
.TP
7b35b1d
\fB\-l\fR, \fB\-\-check\-links\fR
7b35b1d
print a message if not all links are dumped
7b35b1d
.TP
7b35b1d
\fB\-\-no\-quote\-chars\fR=\fISTRING\fR
7b35b1d
disable quoting for characters from STRING
7b35b1d
.TP
7b35b1d
\fB\-\-quote\-chars\fR=\fISTRING\fR
7b35b1d
additionally quote characters from STRING
7b35b1d
.TP
7b35b1d
\fB\-\-quoting\-style\fR=\fISTYLE\fR
7b35b1d
set name quoting style; see below for valid STYLE
7b35b1d
values
7b35b1d
.TP
7b35b1d
\fB\-R\fR, \fB\-\-block\-number\fR
7b35b1d
show block number within archive with each
7b35b1d
message
7b35b1d
.TP
7b35b1d
\fB\-\-show\-defaults\fR
7b35b1d
show tar defaults
7b35b1d
.TP
7b35b1d
\fB\-\-show\-omitted\-dirs\fR
7b35b1d
when listing or extracting, list each directory
7b35b1d
that does not match search criteria
7b35b1d
.TP
e6f5bb4
\fB\-\-show\-snapshot\-field\-ranges\fR
e6f5bb4
show valid ranges for snapshot\-file fields
e6f5bb4
.TP
7b35b1d
\fB\-\-show\-transformed\-names\fR, \fB\-\-show\-stored\-names\fR
7b35b1d
show file or archive names after transformation
7b35b1d
.TP
7b35b1d
\fB\-\-totals\fR[=\fISIGNAL\fR]
7b35b1d
print total bytes after processing the archive;
7b35b1d
with an argument \- print total bytes when this
7b35b1d
SIGNAL is delivered; Allowed signals are: SIGHUP,
7b35b1d
SIGQUIT, SIGINT, SIGUSR1 and SIGUSR2; the names
7b35b1d
without SIG prefix are also accepted
7b35b1d
.TP
7b35b1d
\fB\-\-utc\fR
7b35b1d
print file modification dates in UTC
7b35b1d
.TP
7b35b1d
\fB\-v\fR, \fB\-\-verbose\fR
7b35b1d
verbosely list files processed
7b35b1d
.TP
b6f2262
\fB\-\-warning\fR=\fIKEYWORD\fR
b6f2262
warning control
b6f2262
.TP
7b35b1d
\fB\-w\fR, \fB\-\-interactive\fR, \fB\-\-confirmation\fR
Radek Brich 344a711
ask for confirmation for every action
7b35b1d
.IP
7f322ff
.SH \fBCompatibility options:\fR
Radek Brich 344a711
.TP
7b35b1d
\fB\-o\fR
7b35b1d
when creating, same as \fB\-\-old\-archive\fR; when
7b35b1d
extracting, same as \fB\-\-no\-same\-owner\fR
7b35b1d
.IP
7f322ff
.SH \fBOther options:\fR
Radek Brich 344a711
.TP
7b35b1d
\-?, \fB\-\-help\fR
7b35b1d
give this help list
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-restrict\fR
7b35b1d
disable use of some potentially harmful options
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-usage\fR
7b35b1d
give a short usage message
Radek Brich 344a711
.TP
7b35b1d
\fB\-\-version\fR
7b35b1d
print program version
7b35b1d
.PP
7b35b1d
.PP
7b35b1d
Mandatory or optional arguments to long options are also mandatory or optional
7b35b1d
for any corresponding short options.
7b35b1d
.PP
e6f5bb4
The backup suffix is '~', unless set with \fB\-\-suffix\fR or SIMPLE_BACKUP_SUFFIX.
7b35b1d
The version control may be set with \fB\-\-backup\fR or VERSION_CONTROL, values are:
Radek Brich 344a711
.TP
7b35b1d
none, off
7b35b1d
never make backups
Radek Brich 344a711
.TP
7b35b1d
t, numbered
7b35b1d
make numbered backups
7b35b1d
.TP
7b35b1d
nil, existing
7b35b1d
numbered if numbered backups exist, simple otherwise
Radek Brich 344a711
.TP
7b35b1d
never, simple
7b35b1d
always make simple backups
7b35b1d
.PP
b6f2262
Valid arguments for the \fB\-\-quoting\-style\fR option are:
7b35b1d
.IP
7b35b1d
literal
7b35b1d
shell
7b35b1d
shell\-always
7b35b1d
c
7b35b1d
c\-maybe
7b35b1d
escape
7b35b1d
locale
7b35b1d
clocale
7b35b1d
.PP
7b35b1d
.SH AUTHOR
7b35b1d
Written by John Gilmore and Jay Fenlason.
Radek Brich 344a711
.SH "REPORTING BUGS"
7b35b1d
Report bugs to <bug\-tar@gnu.org>.
7b35b1d
.SH COPYRIGHT
dac2710
Copyright \(co 2013 Free Software Foundation, Inc.
7b35b1d
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
7b35b1d
.br
7b35b1d
This is free software: you are free to change and redistribute it.
7b35b1d
There is NO WARRANTY, to the extent permitted by law.