csync2 icon indicating copy to clipboard operation
csync2 copied to clipboard

exclude wildcard/partial path patterns

Open alchemyconsulting opened this issue 5 years ago • 2 comments

Hi, I'm trying to sync three nodes of a web cluster with lots of files/directories. There are many instances of the same kind of directory tree (lots of similar vhosts) where we want to exclude certain common directories eg. cache directories.

I've tried using exclude patterns eg: files/cache files/cache/* /files/cache/ /files/cache/

But these directories aren't being excluded. Sample full paths would be something like: /srv/www/vhosts/<domain-name>/<site-name>/html/application/files/cache/... where and change between each vhost directory.

Is this possible with csync2?

alchemyconsulting avatar Nov 06 '20 07:11 alchemyconsulting

Never tried it my self, but can you try and use this pattern

/srv/www/vhosts/*/html/application/files/cache/

rabin-io avatar Dec 05 '20 20:12 rabin-io

I tried this, as well as **, no luck.

alchemyconsulting avatar Dec 12 '20 13:12 alchemyconsulting