include/exclude ?

tim.conway at tim.conway at
Sat Dec 1 03:29:12 EST 2001

rsync doesn't do the odd wildcard syntax you show there... you'll have to 
do --include=an* --include=mp* --include=ERR*

Tim Conway
tim.conway at
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn, 
".\n" '
"There are some who call me.... Tim?"

"Kapoor, Nishikant X" <Nishikant.X.Kapoor at>
Sent by: rsync-admin at
11/30/2001 09:09 AM

        To:     rsync at
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        include/exclude ?


Could someone please help me resolve this:

[admx:test] $ ls
ERR01  ah01   ah02   an01   an02   mp01   mp02

[admx:test] $ ls {an,mp,ERR}*
ERR01  an01   an02   mp01   mp02

I want to rsync only the "{an,mp,ERR}*" files across using the following
command but do not see the expected results.

[admx:test] $ rsync -va --exclude="*" --include="{an,mp,ERR}*" ./*
building file list ... done
wrote 67 bytes  read 337 bytes  269.33 bytes/sec
total size is 0  speedup is 0.00

I am running 'rsync version 2.3.1  protocol version 20' on a IBM
RS6000/F50 running AIX 4.3.1 on both sides.


More information about the rsync mailing list