<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>I&#8217;m having a problem with an exclude list and I wanted to run it by the group before I cry &#8220;Bug!&#8221;.&nbsp; Here&#8217;s the scenario:&nbsp; </div>
<div>&nbsp;</div>
<div>I'm working on a script to selectively synchronize several directories with those on a server using rsync (version 3.0.5 protocol version 30). &nbsp;I am using the --exclude-from command option, and everything works, except when a directory I am specifying
contains a hyphen. &nbsp;Then I can't get a pattern match and the directory (and all its children) will not sync. &nbsp;I have tried to escape the hyphen with a backslash, and replace it with an ampersand or a dot or an asterisk to wild card it. &nbsp;The command I am using
is:<br>

<br>

rsync -avze ssh --dry-run --exclude-from=/home/user/excl.tmp server01:/usr2/ /home/user/usr2/<br>

<br>

Examples of excl.tmp file. &nbsp;This works:<br>

&#43; /gale<br>

&#43; /gale/tools<br>

&#43; /gale/tools/**<br>

- *<br>

<br>

This doesn't work (it only syncs the directory file named gale):<br>

&#43; /gale<br>

&#43; /gale/solver-alpha<br>

&#43; /gale/solver-alpha/**<br>

- *<br>

<br>

Note that rsync will happily sync other files with a hyphen in the name, it just fails to pattern match them when they are specified in the exclude file.&nbsp; Furthermore, I tried it out on another machine with rsync 2.6.8 and it works.&nbsp; I went back to my original
machine and upgraded rsync to 3.0.7 and still no luck.&nbsp; I looked at Bugzilla and didn&#8217;t see any items covering this, though I might have missed something, particularly if I&#8217;m just seeing the tip of an iceberg.&nbsp; Can anyone reproduce this so I know it&#8217;s not just
something I&#8217;m doing wrong?&nbsp; <br>

<br>

Other details: &nbsp;The local machine is running ubuntu 9.04, while the remote server is running RedHat Enterprise Linux 5.4.&nbsp; The other machine (on which rsync 2.6.8 is installed) is also running RHEL 5.4.</div>
<div>&nbsp;</div>
<div><font face="Arial, sans-serif" size="3">John D. Wolter</font></div>
<div><font face="Arial, sans-serif" size="3">Aerospace Engineer</font></div>
<div><font face="Arial, sans-serif" size="3">NASA Glenn Research Center</font></div>
<div><font face="Arial, sans-serif" size="3">&nbsp;</font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</font>
</body>
</html>