WOW! That's could be a nice idea! 2016-09-29 14:13 GMT-03:00 Jeremy Allison via samba <samba at lists.samba.org>:> On Thu, Sep 29, 2016 at 05:31:12PM +0200, Klaus Hartnegg via samba wrote: > > Am 29.09.2016 um 16:26 schrieb v g via samba: > > >Really? Easy and useful, huh? > > > > Live sync of directories is VERY useful. > > > > So useful that I just try to kill the purchase of EMC Isilon, precisely > > because it cannot replicate with Windows. > > How about rsync triggered by a Samba VFS > module that notices updates a list of > changed files. > > Just sayin', shouldn't be that hard... > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- Gilberto Ferreira +55 (47) 9676-7530 Skype: gilberto.nunes36
On Thu, Sep 29, 2016 at 02:25:18PM -0300, Gilberto Nunes via samba wrote:> WOW! That's could be a nice idea!Well you could do it via a VFS module that flags every changed file and on close writes the modified pathname to a fifo. Outside of Samba something listens to that fifo and feeds it into rsync. Should be a really simple VFS module...
I would like to help with this VFS, but my skill as programmer is near 0!... but I am openning to test if some one write it... But I get the idea! It's seems very simple, for those has the right skill to do that 2016-09-29 14:34 GMT-03:00 Jeremy Allison <jra at samba.org>:> On Thu, Sep 29, 2016 at 02:25:18PM -0300, Gilberto Nunes via samba wrote: > > WOW! That's could be a nice idea! > > Well you could do it via a VFS module that > flags every changed file and on close writes > the modified pathname to a fifo. > > Outside of Samba something listens to that fifo > and feeds it into rsync. > > Should be a really simple VFS module... >-- Gilberto Ferreira +55 (47) 9676-7530 Skype: gilberto.nunes36
Or this one: "The inotify cron daemon (incrond) is a daemon which monitors filesystem events and executes commands defined in system and user tables."> Am 29.09.2016 um 19:25 schrieb Gilberto Nunes via samba <samba at lists.samba.org>: > > WOW! That's could be a nice idea! > > 2016-09-29 14:13 GMT-03:00 Jeremy Allison via samba <samba at lists.samba.org>: > >>> On Thu, Sep 29, 2016 at 05:31:12PM +0200, Klaus Hartnegg via samba wrote: >>>> Am 29.09.2016 um 16:26 schrieb v g via samba: >>>> Really? Easy and useful, huh? >>> >>> Live sync of directories is VERY useful. >>> >>> So useful that I just try to kill the purchase of EMC Isilon, precisely >>> because it cannot replicate with Windows. >> >> How about rsync triggered by a Samba VFS >> module that notices updates a list of >> changed files. >> >> Just sayin', shouldn't be that hard... >> >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba >> > > > > -- > > Gilberto Ferreira > +55 (47) 9676-7530 > Skype: gilberto.nunes36 > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
On Thu, Sep 29, 2016 at 09:17:49PM +0200, Klaus Hartnegg via samba wrote:> Or this one: > "The inotify cron daemon (incrond) is a daemon which monitors > filesystem events and executes commands defined in system and user > tables."Problem is -- inotify is not recursive by default. We now have the notifyd which can inform you about all changes in the whole tree. Just try the "notify \\" command in smbclient and watch what's coming in. smbclient would not be the ideal candidate, we can do that much more light-weight. But that would be the way to go for such a daemon without having to recurse once a minute or so. Volker