rsync-folders
rsync-folders copied to clipboard
Feature: Add Option for `--exclude` flag
I trying to find a way to sync my node projects to iCloud. Yet, I don't want node_modules to be synced with iCloud
Would be great to be able to define an rsync exclude pattern (e.g., rsync ... --exclude="node_modules" ...
)
Since this is not only affecting node_modules, maybe it is clever to specify certain values in a list:
For example, in workflow configuration a user may add in text field:
macos,visualstudiocode,node,nextjs
and this would translate to this api:
https://www.toptal.com/developers/gitignore?templates=macos,visualstudiocode,node,nextjs
and would generate this: https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,node,nextjs
This it would contain all relevant ignore files...
There is an --exclude-from
flag that accepts a file, e.g.,:
rsync -av --exclude-from={'list.txt'} sourcedir/ destinationdir/
I can look into this and come up with a PR if you are interested in this?