This enhancement adds a new command line utility misc/cronjobs/sftp_file.pl that allows libraries to securely transfer MARC data to an SFTP server.
Example usage: misc/cronjobs/sftp_file.pl --host sftp --user koha --pass koha --upload_dir upload --file /tmp/test.mrc
Additional information:
1. Use misc/cronjobs/sftp_file.pl --help to list all the options available.
2. Two new notices are available: SFTP_FAILURE and SFTP_SUCCESSFUL.
3. The from address for any emails defaults to KohaAdminEmailAddress if ReplytoDefault is not set.
##### Example of usage and workflow
In New Zealand, libraries need to send MARC files to a remote server (using SFTP) to keep the national Te Puna union catalogue up to date.
This enhancement allows NZ libraries to automate sending their MARC files by:
1. Using the runreport.pl cronjob to generate a list of bibliographic numbers.
2. Using the export_records.pl cronjob to generate the MARC file for those bibliographic numbers.
3. Use a new sftp_file cronjob to transfer the MARC file to the remote SFTP server.
|