mprather1/node-backup
Table of Contents
Synopsis
Copy a directory on a remote machine to a local directory via sftp.
Installation
yarn install
Usage
CLI
./index [options]
Options:
-l, --log <dir> location of log directory [optional]
-s, --remote <dir> location of remote source directory
-o, --output <dir> location of output directory
-u, --username <name> remote login username
-k, --key <dir> location of private key
-r --host <ip> IP of remote host
-h, --help output usage information
.env
LOG=/path/to/log/directory
SOURCE=/path/to/source/directory
OUTPUT=/path/to/output/directory
USERNAME=username
HOST=hostname
KEY=/path/to/private/key