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