X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=doc%2Ftar.1;h=cd133d9ed858d8e904651d0dc4b3b72749df0d00;hb=f86e0605d0e24d2e0424579a8310f6fb81375b92;hp=bef0e70fae96c6617f89284d11e996b1dcde878f;hpb=1689ed43885c8418c29d1365ae3a06450a460830;p=chaz%2Ftar diff --git a/doc/tar.1 b/doc/tar.1 index bef0e70..cd133d9 100644 --- a/doc/tar.1 +++ b/doc/tar.1 @@ -1,5 +1,5 @@ .\" This file is part of GNU tar. -*- nroff -*- -.\" Copyright 2013 Free Software Foundation, Inc. +.\" Copyright 2013-2014 Free Software Foundation, Inc. .\" .\" GNU tar is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by @@ -13,7 +13,7 @@ .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . -.TH TAR 1 "January 28, 2014" "TAR" "GNU TAR Manual" +.TH TAR 1 "February 22, 2014" "TAR" "GNU TAR Manual" .SH NAME tar \- an archiving utility .SH SYNOPSIS @@ -506,6 +506,24 @@ Try extracting files with the same ownership as exists in the archive .TP \fB\-s\fR, \fB\-\-preserve\-order\fR, \fB\-\-same\-order\fR Sort names to extract to match archive +.TP +\fB\-\-sort=\fIORDER\fR +When creating an archive, sort directory entries according to +\fIORDER\fR, which is one of +.BR none , +.BR name ", or" +.BR inode . + +The default is \fB\-\-sort=none\fR, which stores archive members in +the same order as returned by the operating system. + +Using \fB\-\-sort=name\fR ensures the member ordering in the created archive +is uniform and reproducible. + +Using \fB\-\-sort=inode\fR reduces the number of disk seeks made when +creating the archive and thus can considerably speed up archivation. +This sorting order is supported only if the underlying system provides +the necessary information. .SS Device selection and switching .TP \fB\-f\fR, \fB\-\-file\fR=\fIARCHIVE\fR @@ -770,6 +788,15 @@ Exclude directories containing file \fBCACHEDIR.TAG\fR and the file itself. \fB\-\-exclude\-caches\-under\fR Exclude everything under directories containing \fBCACHEDIR.TAG\fR .TP +\fB\-\-exclude\-ignore=\fIFILE\fR +Before dumping a directory, see if it contains \fIFILE\fR. +If so, read exclusion patterns from this file. The patterns affect +only the directory itself. +.TP +\fB\-\-exclude\-ignore\-recursive=\fIFILE\fR +Same as \fB\-\-exclude\-ignore\fR, except that patterns from +\fIFILE\fR affect both the directory and all its subdirectories. +.TP \fB\-\-exclude\-tag\fR=\fIFILE\fR Exclude contents of directories containing \fIFILE\fR, except for \fIFILE\fR itself. @@ -783,6 +810,14 @@ Exclude everything under directories containing \fIFILE\fR. \fB\-\-exclude\-vcs\fR Exclude version control system directories. .TP +\fB\-\-exclude\-vcs\-ignores\fR +Exclude files that match patterns read from VCS-specific ignore +files. Supported files are: +.BR .cvsignore , +.BR .gitignore , +.BR .bzrignore ", and" +.BR .hgignore . +.TP \fB\-h\fR, \fB\-\-dereference\fR Follow symlinks; archive and dump the files they point to. .TP