Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Now that SHRINE is stopped, back up the current versions of the components you will be upgrading. Your preferred method for back-up may vary. These instructions will place the backups in a folder called /opt/shrine/upgrade-backups.

Start by creating a folder to contain these backups:

...

Back up other areas of tomcat that you may have modified:


You will also need to modify several database tables. Make a backup of those databases now. The following is an example command that backs up MySQL tables.  Run the command as a user who has access to these tables.  If you use a different database engine, consult its documentation for an equivalent command.

Code Block
languagebash
themeRDark
mysqldump -u<your_username> -p<your_password> --add-drop-table --databases adapterAuditDB shrine_query_history qepAuditDB > <name_of_your_backup_file>
Code Block
languagebash
themerdark
cp -ar /opt/shrine/tomcat/conf /opt/shrine/upgrade-backups/tomcat/conf
cp -ar /opt/shrine/tomcat/bin /opt/shrine/upgrade-backups/tomcat/bin
cp -ar /opt/shrine/tomcat/webapps /opt/shrine/upgrade-backups/tomcat/webapps
cp -ar /opt/shrine/tomcat/lib /opt/shrine/upgrade-backups/tomcat/lib

You will also need to modify several database tables. Make a backup of those databases now. The following is an example command that backs up MySQL tables.  Run the command as a user who has access to these tables.  If you use a different database engine, consult its documentation for an equivalent command.

Code Block
languagebash
themeRDark
mysqldump -u<your_username> -p<your_password> --add-drop-table --databases adapterAuditDB shrine_query_history qepAuditDB > <name_of_your_backup_file>