Gabriel Marchildon

Registered
Mar 4, 2019
1
0
1
Quebec, Canada
cPanel Access Level
Root Administrator
Hello,

I am managing servers that hosts multiple client. In our backups, we have excluded the folder "vendor" with "*/vendor" since we can easily rebuild it with composer.

The problem is that some Wordpress plugins have "vendor" folders in them without composer.json.

The result is that if we need to restore the website from the backup, some plugins are broken and we need to track down the exact version to fix it.

What I was trying to do is to add exception to rules, exactly what we can do in .gitignore by adding a "!" before the rule.

So something like that :

Code:
*/vendor
!*/wp-content/plugins/*/vendor
As far as I know, the system does not allow to achieve that, but I wanted to ask before giving up.

Thank you!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston