X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=doc%2Ftar.texi;h=c9c7d81b690972cf461098f074f381bdf5738516;hb=f218c29b13a1db019cca2e4016956e39ca87e051;hp=ab1129c7e5e101f8181e0c579e2dcc3998767188;hpb=a2a6547e2dbf2d517d13eca912f47f4d73c2140b;p=chaz%2Ftar diff --git a/doc/tar.texi b/doc/tar.texi index ab1129c..c9c7d81 100644 --- a/doc/tar.texi +++ b/doc/tar.texi @@ -201,6 +201,11 @@ @set xref-exclude-from @xref{exclude} @set pxref-exclude-from @pxref{exclude} +@set op-exclude-caches @kbd{--exclude-caches} +@set ref-exclude-from @ref{exclude-caches} +@set xref-exclude-from @xref{exclude-caches} +@set pxref-exclude-from @pxref{exclude-caches} + @set op-extract @kbd{--extract} (@kbd{--get}, @kbd{-x}) @set ref-extract @ref{extract} @set xref-extract @xref{extract} @@ -2748,6 +2753,11 @@ When performing operations, @command{tar} will skip files that match Similar to @samp{--exclude}, except @command{tar} will use the list of patterns in the file @var{file}. @FIXME-xref{} +@item --exclude-caches + +Automatically excludes all directories +containing a cache directory tag. @FIXME-xref{} + @item --file=@var{archive} @itemx -f @var{archive} @@ -5302,7 +5312,7 @@ to comparing directories; this is fairly gross, but there does not seem to be a better way to go. @command{tar} doesn't access @var{snapshot-file} when -@value{op-create} or @value{op-list} are specified, but the +@value{op-extract} or @value{op-list} are specified, but the @value{op-listed-incremental} option must still be given. A placeholder @var{snapshot-file} can be specified, e.g., @file{/dev/null}. @@ -6157,6 +6167,24 @@ added to the archive. @FIXME{do the exclude options files need to have stuff separated by newlines the same as the files-from option does?} +@table @kbd +@item --exclude-caches +Causes @command{tar} to ignore directories containing a cache directory tag. +@end table + +@findex exclude-caches +When creating an archive, +the @samp{--exclude-caches} option +causes @command{tar} to exclude all directories +that contain a @dfn{cache directory tag}. +A cache directory tag is a short file +with the well-known name @file{CACHEDIR.TAG} +and having a standard header +specified in @url{http://www.brynosaurus.com/cachedir/spec.html}. +Various applications write cache directory tags +into directories they use to hold regenerable, non-precious data, +so that such data can be more easily excluded from backups. + @menu * controlling pattern-patching with exclude:: * problems with exclude::