ftp-backup
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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 --help

Local

  • Install
$ npm install ftp-backup
  • package.json
{
	"script": {
		"ftp-backup": "node node_modules/.bin/ftp-backup"
	}
}
  • get help
npm run ftp-backup --help

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i ftp-backup

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

18.2 kB

Total Files

8

Last publish

Collaborators

  • johnson.lee3699