Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exclude wildcard/partial path patterns #28

Open
alchemyconsulting opened this issue Nov 6, 2020 · 2 comments
Open

exclude wildcard/partial path patterns #28

alchemyconsulting opened this issue Nov 6, 2020 · 2 comments

Comments

@alchemyconsulting
Copy link

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?

@rabin-io
Copy link

rabin-io commented Dec 5, 2020

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

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

@alchemyconsulting
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants