<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 20, 2016 at 1:34 PM, Lars Ellenberg <span dir="ltr"><<a href="mailto:lars.ellenberg@linbit.com" target="_blank">lars.ellenberg@linbit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> I like to monitor a folder for syncing, but to ignore a specific file,<br>
> but still sync all the folder if any other file will change.<br>
><br>
> e.g<br>
><br>
> monitor the folder /tftpboot<br>
> ignore the file /tftboot/.git/index<br>
><br>
> the file index will change every time i run the command git status,<br>
> which will trigger a unrequited sync.<br>
<br>
</span>You can either ignore that file (add an exclude pattern).<br>
Or not.<br></blockquote><div><br><div class="gmail_default" style="font-family:tahoma,sans-serif">I know, I added to the excluded list.</div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
"Ignore most of the time unless something else has changed as well"<br>
is not a mode implemented in csync2.<br>
<br>
If you can suggest how such a "include-but-dont-trigger" mode<br>
would be implemented, go ahead.<br>
<br>
I don't see why you would sync git repos with csync2, though.<br>
Just git push instead...</blockquote><div><br><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">for now i used the `action` section to trigger a remote command <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">when a change is detected under `*/.git/*`</div> <div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">, and then rsync the file using `exec`.</div></div></div><br><div class="gmail_default" style="font-family:tahoma,sans-serif"></div><br><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><span style="font-family:monospace,monospace">--<br></span></div><span style="font-family:tahoma,sans-serif"><span style="font-family:monospace,monospace">Rabin</span><br></span></div></div></div>
</div></div>