This repository contains various scripts for performing functions against University of Edinburgh's Open Journal Systems and Open Monograph Press installations. These functions include backups and upgrades.
Edinburgh Diamond, situated within Edinburgh University Library, offers free publishing services to support Diamond Open Access books and journals created by University of Edinburgh academics and students. https://library.ed.ac.uk/research-support/edinburgh-diamond
Edinburgh University Library offers a journal and book hosting service to members of the Scottish Confederation of University & Research Libraries (SCURL), as well as external organisations. https://library.ed.ac.uk/research-support/open-hosting-service.
First copy the .env.template file to .env and fill in the variables for the particular PKP instance you are backing up.
backup_pkp_site.sh performs a backup of an OJS or OMP instance's database and files. Note that this is primarily designed for use with MySQL / MariaDB databases so substitute in the Postgres_backup function in the main program flow for flag -b if you need to use it against a Postgres database.
backup_pkp_site.sh requires the PKP_WEB_PATH and OLD_VERSION variables to be filled in .env.
./backup_pkp_site.sh [-l|h|d|p|f|b]
options:
-lprint the MIT License notification-hprint this Help-dbackup MySQL / MariaDB database-pbackup PostgreSQL database-fbackup website files-bfull backup of database and files
upgrade_pkp_site.sh performs an upgrade of an OJS or OMP instance including putting the site in maintenance mode, installing a new version of OJS or OMP and copying back required files, and upgrading the OJS or OMP database.
upgrade_pkp_site.sh requires all the variables to be filled in .env.
./upgrade_pkp_site.sh [-l|h|m|e|i|c|u]
options:
-lprint the MIT License notification-hprint this Help-mput website into maintenance mode-eturn off maintenance mode-iinstall new version of OJS or OMP-ccheck upgrade for OJS or OMP database-uupgrade OJS or OMP database
To run a full upgrade, run the commands in the following order. Be sure to check that this is working for your environment throughout the process:
./upgrade_pkp_site.sh -m./upgrade_pkp_site.sh -i
After installing a new version of OJS or OMP, you need to manually update config.inc.php to add any new configuration options or remove any deprecated configuration options from config.TEMPLATE.inc.php. This is especially important when upgrading to a major release.
./upgrade_pkp_site.sh -u./upgrade_pkp_site.sh -e