[Aide] Rules to exclude all files except one

Brian Mathis brian.mathis+aide at betteradmin.com
Wed Nov 18 19:23:23 EET 2015


I'm trying to setup some rules that exclude all files/dirs in a
subdirectory except for one, without itemizing every file to exclude.

Example:
    /opt/app/dir1    --> exclude
    /opt/app/dir2    --> include
    /opt/app/dir3    --> exclude

I'm trying something like this, but can't seem to get it working:
    /opt/app/dir2/.*    NORMAL
    !/opt/app/
    /    EVERYTHING
The ! rule always seems to override the dir2 rule.

Is there any way to accomplish this with aide?

~ Brian Mathis
@orev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cs.tut.fi/pipermail/aide/attachments/20151118/a189afa1/attachment.html>


More information about the Aide mailing list