rsync-folders icon indicating copy to clipboard operation
rsync-folders copied to clipboard

Feature: Add Option for `--exclude` flag

Open kalaschnik opened this issue 1 year ago • 2 comments

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" ... )

kalaschnik avatar Dec 27 '23 14:12 kalaschnik

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/

kalaschnik avatar Dec 30 '23 10:12 kalaschnik

I can look into this and come up with a PR if you are interested in this?

kalaschnik avatar Dec 30 '23 10:12 kalaschnik