[Csync2] addition to contrib

Art -kwaak- van Breemen ard+csync2 at telegraafnet.nl
Tue Oct 21 18:58:00 CEST 2008


As I said earlier, csync2 should be updated using inotify.
There were no good solutions that are really trouble free.
My current inotify implementation does the following things:
On startup it recursively starts watching all directories that
are configured.
Once it's finished putting watches on all directories, it will
kill the previous incarnation of itself.  (In my case it takes
about 2 minutes to startup).
If it gets any inotify file events, it will queue these events.
If it gets any inotify directory events it will add watches if
it's a new directory, and then it will queue the event.
If there is anything in the queue it will start csync2 -h for
files (as much as possible) and csync -hr for directories (one at
a time).

Another process must check if something must be checked or not.
(csync2 -c && csync2 -u )

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in email?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: csync2id.pl
Type: text/x-perl
Size: 6215 bytes
Desc: not available
Url : http://lists.linbit.com/pipermail/csync2/attachments/20081021/374a351e/csync2id.pl


More information about the Csync2 mailing list