Page 1 of 1

Empty folders in filtered subfolders

Posted: 22 Jun 2022, 04:57
by lyichi
I'm trying to back up my development projects and filtering out the node_modules folder.
What ends up happening is that the node_modules folder, alongside its subdirectories are copied but are empty.

Is there any way to avoid copying the node_modules folder and its subdirectories altogether?

Re: Empty folders in filtered subfolders

Posted: 23 Jun 2022, 19:45
by cobian
Add an exclusion mask of type *\node_modules\*.

And check Ignore empty directories in case you will delete those empty directories from the backup.

Re: Empty folders in filtered subfolders

Posted: 24 Jun 2022, 05:14
by lyichi
Unfortunately *\node_modules\* doesn't work and backs up the contents of node_modules anyway.

I have tried *\node_modules\*\ which does work and will not back up the contents of node_modules, but it creates tons of empty folders and subfolders which seems to take up some extra time when backing up.

Checking the ignore empty directories also doesn't seem to give the desired result.

Re: Empty folders in filtered subfolders

Posted: 29 Jun 2022, 11:52
by cobian
Hmmm