https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38115
Martin Renvoize (ashimema) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #186855|0 |1 is obsolete| | --- Comment #9 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 188090 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188090&action=edit Bug 38115: Add destination_server_id to export_records This patch adds two new flags to the export_records.pl script. * --destination_server_id=ID This flag will, when passed, upload the file generated by this script to the destination server, as configured in the FTP/SFTP Servers settings. * --delete_local_after_run This flag will, when passed, cause the script to unlink (delete) the generated marc or CSV file found on the local disk. This is useful for folk who want to upload the file, but not necessarily keep a local copy, filling up the server's storage medium TO TEST: a) APPLY PATCH, reset_all b) Create valid FTP/SFTP Server in Koha settings, ensuring that the server you create is valid and passes testing c) Run ./misc/export_records.pl with no agruments 1) Notice how koha.mrc file is generated d) Run ./misc/export_records.pl --destination_server_id=1 1) Notice how koha.mrc file is generated 2) On your FTP/SFTP Server, notice how koha.mrc is now present in the upload directory e) Run ./misc/export_records.pl --delete_local_after_run 1) Notice how koha.mrc file is NOT generated locally f) Run ./misc/export_records.pl --destination_server_id=1 --delete_local_after_run 1) Notice how koha.mrc file is NOT generated locally 2) On your FTP/SFTP Server, notice how koha.mrc is still present in the upload directory AND the file age is fresh Signed-off-by: Martin Renvoize <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
