Start by creating a folder to contain these backups:
mkdir /opt/shrine/upgrade-backups mkdir /opt/shrine/upgrade-backups/tomcat |
Make especially sure that the shrine.keystore is backed up. If you lose the private side of a cert you will not be able to recover it.
cp -a /opt/shrine/shrine.keystore /opt/shrine/upgrade-backups/shrine.keystore |
Back up other areas of tomcat that you may have modified:
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 |