Article 5NY83 (open)rsync gains include/exclude support

(open)rsync gains include/exclude support

by
from OpenBSD Journal on (#5NY83)

Claudio Jeker (claudio@) hascommittedsupport for simple include and exclude casesin (open)rsync:

CVSROOT:/cvsModule name:srcChanges by:claudio@cvs.openbsd.org2021/08/29 07:43:46Modified files:usr.bin/rsync : Makefile extern.h flist.c main.c receiver.c sender.c Added files:usr.bin/rsync : charclass.h rmatch.c rules.c Log message:Implement --exclude/exclude-file and --include/include-file.Currently only simple include and excludes work, the advanced filtersintroduced later in rsync are not implemented. It is unclear if the perdirectory filters are something we want to implement. This requiresmore modern protocols which openrsync is not able to handle right now.This adds a special matching function to allow the ** matching which behavesmostly like rsyncs version with the exception of how bad [] patterns areexpanded. For bad patterns openrsync follows more how fnmatch behaves andnot the somewhat strange rsync behaviour.Not perfect but committing now so people can test and provide feedback

Great stuff!This should further reduce the need for installing the net/rsync port.

External Content
Source RSS or Atom Feed
Feed Location http://undeadly.org/cgi?action=rss
Feed Title OpenBSD Journal
Feed Link http://undeadly.org/
Reply 0 comments