I'm trying to copy the yaml files in my project to a dist folder, preserving the structure. However it is copying node_modules
which I don't want. How do I exclude with rsync and why does my below command not work?
rsync -R --exclude=node_modules ./**/**.yaml dist
Note I've tried the variants, etc:
rsync -R --exclude= node_modules ./**/**.yaml dist
rsync -R --exclude 'node_modules' ./**/**.yaml dist
my folder structure:
projectroot
|--config/file.yaml
|
|--node_modules/somedir/somefile.yaml
|
|--src/somefolder/somefile.yaml
and I want the above to show up in my dist as:
dist
|--config/file.yaml
|
|--src/somefolder/somefile.yaml