Will rsync support btrfs file system?

Benjamin R. Haskell rsync at benizi.com
Sun Dec 6 13:30:11 MST 2009


On Sun, 6 Dec 2009, Benjamin R. Haskell wrote:

> On Sun, 6 Dec 2009, Charles Marcus wrote:
> 
> > On 12/6/2009, Louise Hoffman (louise.hoffman at gmail.com) wrote:
> > > The way I read that, it's not something rsync-specific. It sounds
> > > like btrfs would allow the generation of a list of files, which rsync
> > > (or tar, or zip, or whatever) could accept. (Rsync obviously being
> > > the best choice, :-) )
> > 
> > So, I wonder if inotify could be leveraged to do the same thing - this 
> > would be file-system agnostic...
> > 

[...]

Huh.  Cool.  This might not be all that difficult.  I downloaded 
inotify-tools from inotify-tools.sf.net and the following test (monitor 
all changes to my home directory) seems to be producing interesting 
results:

find /home/ -xdev -type d | sudo inotifywait --fromfile - -m | perl -lnwe 'BEGIN{$|=1;} print unless $h{$_}; $h{$_}++'

I had to `echo 100000 | sudo tee /proc/sys/fs/inotify/max_user_watches` to 
increase the paltry 8192 default, but nonetheless I see how this could be 
usefully turned into a nice monitoring system.  (The above test doesn't 
update the list of directories being watched, for example, so 
newly-created directories aren't added.)

Best,
Ben


More information about the rsync mailing list