A tool to back up your Documents, Pictures, and folders.
Based on npm ssh2-sftp-client package
You can install globally or locally.
- Install
$ npm install -g ftp-backup
- get help
$ ftp-backup --help
- Install
$ npm install ftp-backup
- package.json
{
"script": {
"ftp-backup": "node node_modules/.bin/ftp-backup"
}
}
- get help
npm run ftp-backup --help
we can confirm usage help by ftp-backup --help
, by default ftp-backup
will look for the ftp.properties
in your current folder.
we can use options like ftp-backup --config ftp.properties ....
to specific the config file.
// ftp.properties
host=ftp01.asuswebstorage.com
port=22
user=user
password=pswd
source=./test
remote=/
retain=10