diff options
author | wollman <wollman@FreeBSD.org> | 2000-05-12 03:03:00 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2000-05-12 03:03:00 +0000 |
commit | 198f09c6490f91ae9c9c8efea0c89ab39cf74eae (patch) | |
tree | 449573864446544da5244e027fd71c8143d7aabf /usr.sbin/mtree/mtree.8 | |
parent | 1ec3688bd005be0ac734c873c8de9e941e8ee02c (diff) | |
download | FreeBSD-src-198f09c6490f91ae9c9c8efea0c89ab39cf74eae.zip FreeBSD-src-198f09c6490f91ae9c9c8efea0c89ab39cf74eae.tar.gz |
Give mtree the ability to exclude files and directories from its traversal.
PR: 16944
Diffstat (limited to 'usr.sbin/mtree/mtree.8')
-rw-r--r-- | usr.sbin/mtree/mtree.8 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr.sbin/mtree/mtree.8 b/usr.sbin/mtree/mtree.8 index d01438f..1e2ecb5 100644 --- a/usr.sbin/mtree/mtree.8 +++ b/usr.sbin/mtree/mtree.8 @@ -46,6 +46,7 @@ .Op Fl k Ar keywords .Op Fl p Ar path .Op Fl s Ar seed +.Op Fl X Ar exclude-list .Sh DESCRIPTION The utility .Nm mtree @@ -117,6 +118,19 @@ except a status of 2 is returned if the file hierarchy did not match the specification. .It Fl x Don't descend below mount points in the file hierarchy. +.It Fl X Ar exclude-list +The specified file contains +.Xr fnmatch 3 +patterns matching files to be excluded from +the specification, one to a line. +If the pattern contains a +.Ql \&/ +character, it will be matched against entire pathnames (relative to +the starting directory); otherwise, +it will be matched against basenames only. No comments are allowed in +the +.Ar exclude-list +file. .El .Pp Specifications are mostly composed of ``keywords'', i.e. strings that |