ssh-sync
v1.0.3
Published
Sync a local directory with a remote directory via ssh. Requires that rsync be installed: https://rsync.samba.org/download.html
Downloads
4
Readme
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>
}
});