Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.45 KB

File metadata and controls

39 lines (25 loc) · 1.45 KB

evergreen-libraryiq-export

This software will extract data from an Evergreen server and SFTP the output to the specified host. It will send an email to a set of email addresses upon completion. If there is an error, it will send an email to a different set of email addresses. The output data will be kept locally inside the specified archive folder.

Steps:

    git clone https://github.com/mcoia/evergreen-libraryiq-export.git
    cd evergreen-libraryiq-export
    cp library_config.conf.example library_config.conf
    vi library_config.conf
    #make tweaks for the log file, archive folder, temp folder, SFTP credentials, etc.
    ./extract_libraryiq.pl --config library_config.conf

Command line options

Alternate path to the Evergreen config file (opensrf.xml)

    --xmlconfig /path/to/xml

Defaults to: /openils/conf/opensrf.xml

recreatedb

    --recreatedb

This flag will cause the software to drop and recreate the database schema. It uses a schema named "libraryiq" It might be a good idea to use this flag if this script receives an update from git. There might be tweaks to the DB functions that will need to get applied to your system.

full

    --full

Use this flag to cause the script to extract a full dataset for the specified libraries. By default, the script extracts the data from Evergreen that changed since the last time it ran (for this config file).