Difference between revisions of "EC2 server recovery"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
=== No SSL connections possible === | === No SSL connections possible === | ||
==== Changes in AWS ==== | |||
# Make a snapshot of the running server | # Make a snapshot of the running server | ||
# Make a volume from the snap shot | # Make a volume from the snap shot | ||
# Create a new server | # Create a new server | ||
# Attatch the volume to machine /dev/sdf | # Attatch the volume to machine /dev/sdf | ||
==== Connect to new server ==== | |||
# Install TS client tools | # Install TS client tools | ||
# ts quick-install | # ts quick-install | ||
Line 23: | Line 24: | ||
# sudo cp /mnt/oldroot/usr/share/tomcat8/conf/Catalina/localhost/* /usr/share/tomcat8/conf/Catalina/localhost | # sudo cp /mnt/oldroot/usr/share/tomcat8/conf/Catalina/localhost/* /usr/share/tomcat8/conf/Catalina/localhost | ||
# ts start-webserver | # ts start-webserver | ||
# Ensure server is running |
Revision as of 00:17, 10 January 2025
No SSL connections possible
Changes in AWS
- Make a snapshot of the running server
- Make a volume from the snap shot
- Create a new server
- Attatch the volume to machine /dev/sdf
Connect to new server
- Install TS client tools
- ts quick-install
- ts stop-webserver
- ts stop-database
- mkdir /mnt/oldroot
- sudo mount /dev/nvme1n1p1 /mnt/oldroot
- sudo rm -r /var/lib/mysql
- sudo cp -r /mnt/oldroot/var/lib/mysql /var/lib
- ts start-database
- mysql -uroot -pTempusServaFTW! -e "UPDATE applive.systempolicy SET PolicyValue='false' WHERE PolicyName LIKE 'securitySsl%'"
- sudo rm -r /mnt/sda/*
- sudo cp -r /mnt/oldroot/usr/tempusserva/sda/* /mnt/sda/
- sudo cp /mnt/oldroot/usr/share/tomcat8/conf/server.xml /usr/share/tomcat8/conf
- sudo cp /mnt/oldroot/usr/share/tomcat8/conf/Catalina/localhost/* /usr/share/tomcat8/conf/Catalina/localhost
- ts start-webserver
- Ensure server is running