On 2026-06-08 22:45:03+0200, Claudio Jeker <[email protected]> wrote:
> On Mon, Jun 08, 2026 at 01:01:47PM -0600, Luke A. Call wrote:
> > The openrsync manual page mentions patterns for things like --exclude.
> > Is there a reference for those patterns that I could check? Or is it the
> > same as rsync?
> 
> It should be mostly like rsync. Right now only -, + and ! are supported as
> flags and IIRC no modifiers are supported either. The pattern matching rules
> should be the same, ?, *, **, char classes [ ], and *** should work.
> There are some minor differences when it comes to some interpretation of
> bad patterns. See regress/usr.bin/rsync-unit/rmatch_test.c for examples.
> 
> So if you have a case where it does not work then please report.
> Filters in rsync are very complex (or totally overdesigned).

I have tried a few variations, but this command and output seem to
say it is both excluding the ~root/.ssh/known_hosts file and 
then downloading it, where I want to exclude and not download it.
(I'm running obsd 7.8.)  Maybe I should try --exlude-from instead, since
in real use I have a long list of exclusions. Or maybe I just
misunderstand.

(Also I've seen inconsistency in the output, for the list of files
it shows about to be downloaded (all listed, vs. just some listed), but
haven't yet spent the time to see if I can reproduce it in a reliable &
reportable way. FWIW (or not).)

# openrsync -av --del --exclude '.ssh/*' --rsync-path=openrsync 
192.168.1.113:/root/ /root 2>&1 > /tmp/13 && x /tmp/13
Transfer starting: 1460 files
openrsync: warning: skip excluded file .ssh/authorized_keys
openrsync: warning: skip excluded file .ssh/agent
openrsync: warning: skip excluded file .ssh/id_rsa
openrsync: warning: skip excluded file .ssh/id_rsa.pub
openrsync: warning: skip excluded file .ssh/known_hosts
openrsync: warning: skip excluded file .ssh/known_hosts.old
openrsync: warning: skip excluded file 
backups-of-config-files/both/etc-skel/orig/.ssh/authorized_keys
openrsync: warning: skip excluded file 
backups-of-config-files/both/etc-skel/.ssh/authorized_keys
rsyncrun-on-acerblack.onemodel.org.log.1: deleting
rsync-on-acerblack.onemodel.org.log.1: deleting
.gnupg/S.gpg-agent
.gnupg/S.gpg-agent.browser
.gnupg/S.gpg-agent.extra
.gnupg/S.gpg-agent.ssh
.links/socket
.links2/socket
.ssh/agent/s.dYEgmFNwEc.agent.fIVopRaG5g
.virc -> .nexrc
backups-of-config-files/obsd -> openbsd/
log -> logs
nmapThings/nmap-big-script -> /usr/local/bin/nmap-big-script
openbsd-cvsSampleCmds -> cvsSampleCmds
.bash_history (34.0 KB, 1.9% downloaded)
.ssh/known_hosts (11.4 KB, 100.0% downloaded)
.ssh/known_hosts-working (175 B, 100.0% downloaded)
.ssh/known_hosts.old (10.1 KB, 100.0% downloaded)
Transfer complete: 113.0 KB sent, 414 B read, 264.36 MB file size

Thanks much for the previous and any possible future comments!
-Luke

Reply via email to