[Csync2] Wildcards in exclude list?

Keith Edmunds kae at midnighthax.com
Mon Oct 27 14:56:27 CET 2008


Hi

I have two servers with a large number of websites on. Each site has a
directory structure similar to:

/var/www/siteA/documentroot
/var/www/siteA/cgi-bin
/var/www/siteA/logs
/var/www/siteB/documentroot
/var/www/siteB/cgi-bin
/var/www/siteB/logs
...

I want to synchronise everything except the 'logs' (and one other
directory, not shown above), so I've put in csync2.conf:

exclude /var/www/*/logs

...and it seems to work. Can I rely on this syntax to not replicate that
directory?

Thanks,
Keith


More information about the Csync2 mailing list