<<

NAME

sftp_file.pl - SFTP a file to a remote server

SYNOPSIS

sftp_file.pl [ --help | --man ] [ -v ] -h host -u user -p pass -d upload_dir --port port -f file -e email

 Options:
   --help       brief help message
   -m --man        full documentation, same as --help --verbose
   -v --verbose    verbose output
   -h --host          SFTP host to upload to
   -u --user          SFTP user
   -p --pass          SFTP password
   -u --upload_dir    Directory on SFTP host to upload to
   -P --port          SFTP upload port to use - falls back to port 22
   -f --file          File to SFTP to host
   -e --email         Email address to receive confirmation of SFTP upload success or failure

OPTIONS

--help

Print brief help and exit.

--man

Print full documentation and exit.

--verbose

Increased verbosity, reports successes and errors.

--host

Remote server host to SFTP file to.

--user

Username credential to authenticate to remote host.

--pass

Password credential to authenticate to remote host.

--upload_dir

Directory on remote host to SFTP file to.

--port

Remote host port to use for SFTP upload. Koha will fallback to port 22 if this parameter is not defined.

--file

File to SFTP to remote host.

--email

Email address to receive the confirmation if the SFTP upload was a success or failure.

DESCRIPTION

This script is designed to SFTP files.

DESCRIPTION

This script is designed to SFTP files to a remote server.

USAGE EXAMPLES

sftp_file.pl --host test.com --user test --pass 123cne --upload_dir uploads --file /tmp/test.mrc

In this example the script will upload /tmp/test.mrc on the Koha server to the test.com remote host using the username:password of test:123cne. The file will be SFTP to the uploads directory.

<<