<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
hi all<br><br>i try to create a csync2 group which syncs different directories to different servers<br>using google and csync2 archives i didnt find anything usefull on my problem<br><br>my config looks like the one at the bottom of this mail<br>the problem: while i try to sync httpdir to httpslaves and contentdir to contentslaves i get an error that for example: contentslave doesnt have %httpdir%<br>this makes sense, but i'm not sure how to solve this, cause i dont want httpdir to be synced to contentslave<br>i tried an exclude statement in hope the slaves will exclude the dir's by themselves, but the master excludes the directories and tries to sync the remaining dirs to all slaves<br><br>the reason why i try to group different types of hosts together is that we try to seperate the source code (and content) on different hosts, which is currently differentiated by the source code (or content) directory names<br>for example: images should be placed on server A, movies on server B and the corresponding source code will be on different hosts too, but it all belongs to the same project<br><br>the question: how can i prevent syncing a directory to a given server<br>in my example i want to prevent httpdir synced to contentslave1 AND contentdir to httpslave[12]<br>i tried with /dev/null which resulted in a directory doesnt exist error message on the slaves<br><br>thx for your time<br>[nick]<br><br>#myconfig<br>group PROJECTNAME<br>{<br>&nbsp;&nbsp; host master (httpslave1) (httpslave2) (contentslave1);<br>&nbsp;&nbsp; include %httpdir%;<br>&nbsp;&nbsp; include %contentdir%;<br>&nbsp;&nbsp; key /etc/csync2.key_PROJECTNAME;<br>&nbsp;&nbsp; auto none;<br>}<br>prefix httpdir<br>{<br>&nbsp;&nbsp; on master: /tmp/syncdir/PROJECTNAME/http;<br>&nbsp;&nbsp; on httpslave1: /var/www/PROJECTNAME;<br>&nbsp;&nbsp; on httpslave2: /var/www/PROJECTNAME;<br>}<br>prefix contentdir<br>{<br>&nbsp;&nbsp; on master: /tmp/syncdir/PROJECTNAME/content;<br>&nbsp;&nbsp; on contentslave1: /var/www/content/PROJECTNAME;<br>}<br><br /><hr />Discover the new Windows Vista <a href='http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>