Discussion:
[Aide] ISP Config excludes
LIJE Creative
2017-12-29 12:18:19 UTC
Permalink
Hi,

I run AIDE since years now but I got an issue.
My config file used to be hundreds of lines long.
I want to optimize things so I tried this:

!/home/www/clients/client0/*/web/wp-content/cache/wp-rocket/.*
!/home/www/clients/client0/*/web/cache/.*
!/home/www/clients/client0/*/web/img/p/.*
!/home/www/clients/client0/*/web/themes/default-bootstrap/cache/.*
!/home/www/clients/client0/*/web/themes/transformer/cache/.*
!/home/www/clients/client0/*/log/.*
!/home/www/clients/client0/*/web/img/tmp/.*
!/home/www/clients/client0/*/web/tmp/.*
!/home/www/clients/client0/*/tmp/*
!/home/www/clients/client0/*/web/stats/.*
!/home/www/clients/client0/*/web/wp-content/cache/wp-rocket/*
!/home/www/clients/client0/*/web/cache/smarty/cache/*

I got 60+ websites on the server so I don't want to duplicate these lines
with
!/home/www/clients/client0/*domain1.tld*/web/wp-content/cache/wp-rocket/.*
I want to exclude complete folders and sub-folders.

But this is not working well. I got 2M+ files in the database.

How can I exlude ALL jpg png gif svg files as well?

Thanks


Cordialement,


JérÎme LILLE | Responsable Agence
***@lije-creative.com | +33 7 70 87 02 03
Site internet : www.lije-creative.com
ᐧ
LIJE Creative
2017-12-29 14:49:22 UTC
Permalink
You mean something like that?

!/home/www/clients/client0/(.*)/web/wp-content/cache/wp-rocket/(.*)
ᐧ

Cordialement,


JérÎme LILLE | Responsable Agence
***@lije-creative.com | +33 7 70 87 02 03
Site internet : www.lije-creative.com
Post by LIJE Creative
!/home/www/clients/client0/*/web/wp-content/cache/wp-rocket/.*
!/home/www/clients/client0/*/web/cache/.*
!/home/www/clients/client0/*/web/img/p/.*
!/home/www/clients/client0/*/web/themes/default-bootstrap/cache/.*
!/home/www/clients/client0/*/web/themes/transformer/cache/.*
!/home/www/clients/client0/*/log/.*
!/home/www/clients/client0/*/web/img/tmp/.*
!/home/www/clients/client0/*/web/tmp/.*
!/home/www/clients/client0/*/tmp/*
!/home/www/clients/client0/*/web/stats/.*
!/home/www/clients/client0/*/web/wp-content/cache/wp-rocket/*
!/home/www/clients/client0/*/web/cache/smarty/cache/*
The aide configuration uses regular expressions, not shell wildcards.
Greetings
Marc
--
------------------------------------------------------------
-----------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
_______________________________________________
Aide mailing list
https://www.ipi.fi/mailman/listinfo/aide
LIJE Creative
2017-12-30 10:23:50 UTC
Permalink
Hi Marc, it worked.
This does the trick:

!/home/www/clients/client0/(.*)/web/cache/(.*)
!/home/www/clients/client0/(.*)/web/img/p/(.*)
!/home/www/clients/client0/(.*)/web/themes/default-bootstrap/cache/(.*)
!/home/www/clients/client0/(.*)/web/themes/transformer/cache/(.*)
!/home/www/clients/client0/(.*)/log/(.*)
!/home/www/clients/client0/(.*)/web/img/tmp/(.*)
!/home/www/clients/client0/(.*)/web/tmp/(.*)
!/home/www/clients/client0/(.*)/tmp/(.*)
!/home/www/clients/client0/(.*)/web/stats/(.*)
!/home/www/clients/client0/(.*)/web/wp-content/cache/wp-rocket/(.*)

Also, how can I exclude all images in sulfolders?
I tried this but it doesn't work:

!(.*/)*.+\.(png|jpg|gif|bmp|jpeg|PNG|JPG|GIF|BMP)$

Cordialement,


JérÎme LILLE | Responsable Agence
***@lije-creative.com | +33 7 70 87 02 03
Site internet : www.lije-creative.com
Post by LIJE Creative
You mean something like that?
!/home/www/clients/client0/(.*)/web/wp-content/cache/wp-rocket/(.*)
Yes. You might want to take a look at the Debian default configuration.
Greetings
Marc
--
------------------------------------------------------------
-----------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
_______________________________________________
Aide mailing list
https://www.ipi.fi/mailman/listinfo/aide
ᐧ

Loading...