ssh-sync

1.0.3 • Public • Published

ssh-sync

Sync a local directory with a remote directory via ssh. Requires that rsync be installed: https://rsync.samba.org/download.html

npm install ssh-sync --save
require('ssh-sync')({
    watch: true,
    /*
        will call rsync on any changes within the local.directory
    */

    local: {
        directory: <local directory>,
        exclude: [
            <path in local directory to exclude>,
            <path in local directory to exclude>,
            <path in local directory to exclude>
        ]
    },
    remote: {
        address: <ip address>,
        user: <username address>,
        key: <path to key path>,
        directory: <remote directory>
    }
});

Readme

Keywords

none

Package Sidebar

Install

npm i ssh-sync

Weekly Downloads

3

Version

1.0.3

License

GNU GPL Version 3

Unpacked Size

40.3 kB

Total Files

7

Last publish

Collaborators

  • bdgrace