1.0.5 • Published 4 years ago
ftp-backup v1.0.5
ftp-backup
A tool to back up your Documents, Pictures, and folders.
Based on npm ssh2-sftp-client package
Install
You can install globally or locally.
Global
- Install
$ npm install -g ftp-backup- get help
$ ftp-backup --helpLocal
- Install
$ npm install ftp-backup- package.json
{
"script": {
"ftp-backup": "node node_modules/.bin/ftp-backup"
}
}- get help
npm run ftp-backup --helpUsage
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