From ede24f484b61025951eb06afde4f0e6f56810f24 Mon Sep 17 00:00:00 2001 From: job Date: Mon, 30 Aug 2021 20:25:24 +0000 Subject: [PATCH] Document new include*/exclude* options in the man page --- usr.bin/rsync/rsync.1 | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/usr.bin/rsync/rsync.1 b/usr.bin/rsync/rsync.1 index cf7aecf7c1d..06d4ec606d6 100644 --- a/usr.bin/rsync/rsync.1 +++ b/usr.bin/rsync/rsync.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rsync.1,v 1.24 2021/03/31 20:36:05 jmc Exp $ +.\" $OpenBSD: rsync.1,v 1.25 2021/08/30 20:25:24 job Exp $ .\" .\" Copyright (c) 2019 Kristaps Dzonsons .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: March 31 2021 $ +.Dd $Mdocdate: August 30 2021 $ .Dt OPENRSYNC 1 .Os .Sh NAME @@ -26,6 +26,10 @@ .Op Fl e Ar program .Op Fl -address Ns = Ns Ar sourceaddr .Op Fl -del +.Op Fl -exclude Ar pattern +.Op Fl -exclude-from Ns = Ns Ar file +.Op Fl -include Ar pattern +.Op Fl -include-from Ns = Ns Ar file .Op Fl -no-motd .Op Fl -numeric-ids .Op Fl -port Ns = Ns Ar service @@ -70,6 +74,26 @@ not found in directories. Only applicable with .Fl r . +.It Fl -exclude Ar pattern +Exclude files matching +.Em pattern . +.It Fl -exclude-from Ns = Ns Ar file +Load +.Em patterns +and +.Em rules +from +.Em file . +.It Fl -include Ar pattern +Include files matching +.Em pattern . +.It Fl -include-from Ns = Ns Ar file +Load +.Em patterns +and +.Em rules +from +.Em file . .It Fl -devices Also transfer device files. .It Fl e Ar program , Fl -rsh Ns = Ns Ar program @@ -210,6 +234,7 @@ or symbolic links The destination .Ar directory must be a directory and is created if not found. +.\" .Sh PATTERNS AND RULES .\" .Sh ENVIRONMENT .\" .Sh FILES .Sh EXIT STATUS -- 2.20.1