I’ve setup one sync that won’t run (“failed to setup, retrying”) because of the error:
error while traversing /var/www/vhosts/example.com/logs/subdomain: permission denied
The logs directory only has permissions for root.
The base directory is /var/www/vhosts/example.com/ and the .stignore is
!/subdomain
!/dumps
**
It doesn’t seem to matter if I include ‘**’ at the top or the bottom, or if I only use ‘*’. My understanding is that the global exclude should be at the end of the list or the include over-rides will be excluded.
Your ignore patterns are correct, the is due to filesystem watching and your include (!...) patterns: With includes we need to traverse into all ignored directories as well, to see if there is something included in there. For normal scans we can ignore errors in those directories, but with filesystem watching (external library) we can’t. So your options are to adjust your directory structure/ignore patterns to not use any includes or disable filesystem watching.