X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=doc%2Ftar.texi;h=b4bb450abd405f53328a758f9765e05abd1be05e;hb=643e3f244170eb0edcdcb237c45bb8756785e047;hp=621ce6063071ae0d83f6d16150e06010269a38b4;hpb=49ea4c50575f66e8f0450e463e1d882eed6255ec;p=chaz%2Ftar diff --git a/doc/tar.texi b/doc/tar.texi index 621ce60..b4bb450 100644 --- a/doc/tar.texi +++ b/doc/tar.texi @@ -2009,7 +2009,7 @@ attention to them. Each option has at least one @dfn{long} (or @dfn{mnemonic}) name starting with two dashes in a row, e.g., @option{--list}. The long names are more clear than their corresponding short or old names. It sometimes happens that a -single long option has many different different names which are +single long option has many different names which are synonymous, such as @option{--compare} and @option{--diff}. In addition, long option names can be given unique abbreviations. For example, @option{--cre} can be used in place of @option{--create} because there is no @@ -2505,6 +2505,11 @@ patterns in the file @var{file}. @xref{exclude}. Automatically excludes all directories containing a cache directory tag. @xref{exclude}. +@opsummary{exclude-tag} +@item --exclude-tag=@var{file} + +Exclude all directories, containing file named @var{file}. @xref{exclude}. + @opsummary{file} @item --file=@var{archive} @itemx -f @var{archive} @@ -6481,6 +6486,38 @@ 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. +@findex exclude-tag +Another option, @option{--exclude-tag}, provides a generalization of +this concept. It takes a single argument, a file name to look for. +Any directory that contains this file will be excluded from the dump. + +@table @option +@opindex exclude-tag +@item --exclude-tag=@var{file} +Causes @command{tar} to ignore directories containing @var{file}. +Multiple @option{--exclude-tag} options can be given. +@end table + +For example: + +@smallexample +$ @kbd{find dir} +dir +dir/blues +dir/jazz +dir/folk +dir/folk/tagfile +$ @kbd{tar -cf archive.tar --exclude-tag=tagfile -v} +dir/ +dir/blues +dir/jazz +./tar: dir/folk/: contains a cache directory tag tagfile; not dumped +$ @kbd{tar -tf archive.tar} +dir/ +dir/blues +dir/jazz +@end smallexample + @menu * problems with exclude:: @end menu