<html>
<head>
<style type="text/css">
<!--
body { font-variant: normal; margin-top: 4px; margin-right: 4px; line-height: normal; margin-bottom: 1px; margin-left: 4px }
-->
</style>
</head>
<body style="margin-top: 4px; margin-right: 4px; margin-bottom: 1px; margin-left: 4px">
<DIV> From the man page:
</DIV>
<DIV> </DIV>
<DIV> --exclude=PATTERN exclude files matching PATTERN
</DIV>
<DIV> --exclude-from=FILE exclude patterns listed in FILE
</DIV>
<DIV> --include=PATTERN don't exclude files matching PATTERN
</DIV>
<DIV> --include-from=FILE don't exclude patterns listed in FILE
</DIV>
<DIV> --files-from=FILE read FILE for list of source-file names
</DIV>
<DIV> </DIV>
<DIV>So you might be able to do an --exclude='*' --include='*.foo'
</DIV>
<DIV> </DIV>
<DIV>You need the * in single quotes so that the shell will not expand it.
</DIV>
<DIV>That is what is harming you now.
</DIV>
<DIV> </DIV>
<DIV>If this fails, you can use find to generate a list of matches and feed
</DIV>
<DIV>rsync a file list.
</DIV>
<DIV> </DIV>
<DIV><br><br><br>-- <br>-Josh More, RHCE, CISSP, NCLP<br> morej@alliancetechnologies.net<br> 515-245-7701<br><br>>>>dave@visionary.com 08/10/05 12:26 pm >>><br>I want to do an rsync like so:<br><br>rsync -avze ssh --recursive *.foo user@host:/location<br><br>(IIRC, recursive is the default behavior, just putting it there to<br>explicitly show that I really want it to be recursive).<br><br>The problem with this is because of the *.foo wildcard, it only uploads<br>*.foo in the current directory, and not any sub directories because<br>they're not named *.foo.<br><br>I've had the same problem with tar. Is there something simple I'm<br>overlooking here? It seems stupid to me that the wildcard applies to<br>both the files, and the directory names.<br><br>My work-around is to change change my rsync script to have several<br>"--exclude *.bar" parameters, which is a pain.<br><br>-dc<br><br><br>Cialug mailing list<br>Cialug@cialug.org<br>http://cialug.org/mailman/listinfo/cialug<br> </DIV>
</body>
</html>