[Csync2] Wildcards in exclude list?
Lars Ellenberg
lars.ellenberg at linbit.com
Mon Dec 1 14:41:11 CET 2008
On Mon, Oct 27, 2008 at 01:56:27PM +0000, Keith Edmunds wrote:
> 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?
the internal funtion used is fnmatch(),
and to my understanding it works exactly the way you intend to use it.
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
More information about the Csync2
mailing list