Closed kylemac closed 10 years ago
I'm not sure that will work cross-platform like sftp would, or if it would be as quick. There's also already a structure in place using sftp (which is very quick, async and opens 20 parallel streams per file) - is there any advantages that rsync would have? That library does look nice though!
"The main advantage of sftp (and the related scp) is that of generally being available anywhere where ssh is available, so just about any Linux/BSD/similar client or server setup, whereas rsync doesn't tend to be installed by default." - serverfault
Here's cwRsync for windows. One more step for the client to install if rsync is used, unless using node-rsync works on windows already?
node-rsync does not work in windows
well that kills that. I hadn't thought much about potential compatibility issues. thanks for chiming in @HHSnopek also!
Since we're just shipping static files, for VPS we should probably just use rsync. It's pretty speedy and is probably all that we need.
A quick google shows there are some node abstractions - https://github.com/mattijs/node-rsync