sftp_file.pl - SFTP a file to a remote server
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
Print brief help and exit.
Print full documentation and exit.
Increased verbosity, reports successes and errors.
Remote server host to SFTP file to.
Username credential to authenticate to remote host.
Password credential to authenticate to remote host.
Directory on remote host to SFTP file to.
Remote host port to use for SFTP upload. Koha will fallback to port 22 if this parameter is not defined.
File to SFTP to remote host.
Email address to receive the confirmation if the SFTP upload was a success or failure.
This script is designed to SFTP files.
This script is designed to SFTP files to a remote server.
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.