include/exclude ?

tim.conway at philips.com tim.conway at philips.com
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.com
303.682.4917
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, 
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), 
".\n" '
"There are some who call me.... Tim?"




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

 
        To:     rsync at lists.samba.org
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        include/exclude ?
        Classification: 



All,

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}*" ./*
mm2x::AppError
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.

Thanks
Nishi









More information about the rsync mailing list