[Csync2] Performing actions based on file changes in deep directories
Alexandre Quessy
alexandre at quessy.net
Tue Apr 13 20:35:47 CEST 2010
Hello,
On GNU/Linux, it is quite easy to do using inotify.
Here is a prototype of a Python script to do so:
http://bitbucket.org/aalex/frigo/src/tip/scripts/toondirwatch
I can't wait to spend some time with csync2 to discover new feature I
can use in my projects.
Bye!
Alexandre
2010/4/13 Mark Watts <m.watts at eris.qinetiq.com>:
>
> I have a csync2 2-node cluster.
> One of the directories I have included in the csync2 config is quite
> deep (eg: /opt/foo/, containing many levels of directory and files
> withing those directories).
>
> I'd like to perform an action (running a script) if any file within this
> tree changes - is this possible? I know I can do an action if a specific
> file or glob matches but its unclear if the "pattern" in an action{}
> works the same way as an "include".
>
> Mark.
>
> --
> Mark Watts BSc RHCE MBCS
> Senior Systems Engineer, Managed Services Manpower
> www.QinetiQ.com
> QinetiQ - Delivering customer-focused solutions
> GPG Key: http://www.linux-corner.info/mwatts.gpg
>
> _______________________________________________
> Csync2 mailing list
> Csync2 at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/csync2
>
>
--
Alexandre Quessy
http://alexandre.quessy.net/
More information about the Csync2
mailing list