Page 1 of 1

Exclude folder node_modules and vendor from backup

Posted: 03 Dec 2020, 12:59
by helderferrari2
Hello everyone,

I wanna make a backup from my developer folders, however, I'd like to exclude some folders called 'node_modules' with all its subfolders.

I already add some masks but these rules don't work.

Current Masks:
*\node_modules*\*
*\node_modules\
*\node_modules\*

Structure:

myProject/
node_modules/
folder1
folder2
...
folder3

myProject2/
node_modules/
folder1
folder2
...
folder3

Re: Exclude folder node_modules and vendor from backup

Posted: 06 Dec 2020, 01:05
by cobian
*\node_modules*\* Should work. The resulting directories should be empty. Isn't that the case?

Re: Exclude folder node_modules and vendor from backup

Posted: 15 Feb 2021, 14:36
by helderferrari2
*\node_modules*\* Should work. The resulting directories should be empty. Isn't that the case?

I added this rule, however, it doesn't work for me. The node_modules folder still remains with its files and subfolders.

Re: Exclude folder node_modules and vendor from backup

Posted: 15 Feb 2021, 17:59
by cobian
That's correct but there should not be any files on those directories. Is that the case?