Bacula-users

Re: [Bacula-users] Linux inotify

2012-10-17 07:22:43
Subject: Re: [Bacula-users] Linux inotify
From: lst_hoe02 AT kwsoft DOT de
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 17 Oct 2012 13:20:21 +0200
Zitat von azurIt <azurit AT pobox DOT sk>:

> Hi,
>
> are there any plans to implement linux inotify selection of files to  
> backup? Thnx.
>
> azur

While it sounds helpful there are some problems to tackle:
- Files changed before or while the FD is not running for example on  
machine startup
- Performance penalty on busy volumes by FD sorting/recording the changes
- Other limitations listed below

(from manpage)
Limitations and caveats

Inotify monitoring of directories is not recursive: to monitor  
subdirectories under a directory, additional watches must be created.  
This can take a significant amount time for large directory trees.

Note that the event queue can overflow. In this case, events are lost.  
Robust applications should handle the possibility of lost events  
gracefully.

The inotify API identifies affected files by filename. However, by the  
time an application processes an inotify event, the filename may  
already have been deleted or renamed.

If monitoring an entire directory subtree, and a new subdirectory is  
created in that tree, be aware that by the time you create a watch for  
the new subdirectory, new files may already have been created in the  
subdirectory. Therefore, you may want to scan the contents of the  
subdirectory immediately after adding the watch.

Regards

Andreas



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users