0.0.15 • Published 11 years ago

ssh2sync v0.0.15

Weekly downloads
62
License
-
Repository
github
Last release
11 years ago

This is meant to be a first step towards implementing rsync purely in Node. That's a large task, so the first step is to implement the part I actually need. Namely:

rsync --archive --delete localdir user@server:remotedir

Usage:

var ssh2sync = require('ssh2sync');

var root_local = ... ; // Grab these from command line arguments?
var root_remote = ...;
var force = true;

ssh2sync.upload(root_local, root_remote, force, {
      
    //    debug: console.log,
    host: ... remote host name ...,
    port: 22,
    username: ... user name ...,
    privateKey: require('fs').readFileSync('/path/to/users/.ssh/id_dsa')
    // OR password: ... the password ..
});
0.0.15

11 years ago

0.0.14

11 years ago

0.0.12

11 years ago

0.0.11

11 years ago

0.0.10

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago