shelljs / shx

Portable Shell Commands for Node
MIT License
1.72k stars 44 forks source link

rsync #183

Closed aminya closed 4 years ago

aminya commented 4 years ago

Adding rsync would be nice

nfischer commented 4 years ago

Are there particular features you need which cp doesn't offer?

aminya commented 4 years ago

The fact that it is faster makes it better than cp https://dev.to/wolfiton/difference-between-cp-and-rsync-dk3

I also wished there was a -p flag for cp that could do this in one take:

mkdir -p dest && cp -r src dest

rsync does it (although not always):

rsync -a src /foo/bar/ 
nfischer commented 4 years ago

Not sure if we can reach the same level of performance. -p option is tracked in https://github.com/shelljs/shelljs/issues/771. Let's consider this a duplicate of that issue for now.