ben-z / Silent-Sync

Automatically takes care of the file syncing while you work.
https://atom.io/packages/silent-sync
Other
8 stars 0 forks source link

Windows Support #5

Open ben-z opened 9 years ago

ben-z commented 9 years ago

Haven't been able to work on this plugin these few weeks. After a bit of searching around, a node wrapper for RoboCopy might be something worth looking into. It would make a good starting point for Silent Sync's windows support.

Any contributions are appreciated :+1:

n-prat commented 9 years ago

I tried node-rsync on Windows, with MSYS2 and it's working.
I tried with that command(in node.js):

  var rsync = new Rsync()
  .shell('W:\\path\\msys64\\usr\\bin\\ssh.exe -p 9999')
  .flags('avz')
  .source('.')
  .destination('user@test.fr:/home/user/test')
  .executable('W:\\path\\msys64\\usr\\bin\\rsync.exe');

So I guess we simply need to add two config options : @config.pathtoRsync and @config.pathtoSSH, defaulted to rsync and ssh so that would work on Linux. Or even better, deduce one from the other, because they probably are in the same place by default.
Also, not completely related but the authentication by public key is working fine, except it is not possible to use a passphrase(tested with an ed25519 key).