]> git.koha-community.org Git - koha.git/commit
Bug 36766: Add a command-line utility to SFTP a file to a remote server
authorAlex Buckley <alexbuckley@catalyst.net.nz>
Thu, 2 May 2024 18:50:19 +0000 (06:50 +1200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 23 Oct 2024 18:02:21 +0000 (20:02 +0200)
commit2f508087f50160d6d3e911ad5e96e0d42309c917
treee0342ff6e60eb6bcc7a362845315f6714ca700c9
parenta900e9307bd2b497bbaa6619de4098b2ea519626
Bug 36766: Add a command-line utility to SFTP a file to a remote server

To test you need to have a remote server you are authorised to SFTP files to.

Test plan:
1. Apply patch and restart services

2. Generate a file on your Koha server. Place it in /tmp/test.mrc

3. Manually connect to the SFTP remote host and accept the hostkey

4. Enter Koha shell

5. Run the sftp_file.pl command-line script
./sftp_file.pl --host <your remote hostname> --user <your user> --pass <your password> --upload_dir <your upload directory> --file /tmp/test.mrc

6. Confirm the SFTP was successful

Sponsored-by: Horowhenua Libraries, Toi Ohomai Institute of Technology, Plant and Food Research Limited, Waitaki District Council, South Taranaki District Council New Zealand
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
misc/cronjobs/sftp_file.pl [new file with mode: 0755]