-
Notifications
You must be signed in to change notification settings - Fork 0
Steps to migrate the production server
James Kent edited this page Sep 13, 2024
·
1 revision
So you're brave enough to migrate the production server, I'm here to hold your hand, it can be a little scary, but we will do it together. from my memory... from a couple hours and 7 salty tacos ago... sorry this guide may not be very complete.
- Back up the
/var/www/
folder - Back up any postgres databases into tar files. If they are docker volumes follow this guide
- Keep the network config files on hand (
etc/netplan/50-cloud-init.yaml
and/etc/ssh/sshd_config
)-
etc/netplan/50-cloud-init.yaml
will have the network settings you need. -
/etc/ssh/sshd_config
really just you need to setPasswordAuthentication no
, otherwise the computer gets quarantined, and we don't want that
-
- after the new drive is installed, use the UDC login stuff to manage the computer. (magic)
- boot from the ubuntu server ISO (https://ubuntu.com/download/server)
- if you noted down the network information, you can input the info during the setup, otherwise you will edit the
netplan
file later - grab a coffee/taco and wait for the install to finish, then reboot
- edit the netplan & sshd_config files if necessary, then try pinging 1.1.1.1 and https://one.one.one.one
- install docker and copy the
/var/www/
and postgres databases back to their appropriate folders. - rebuild images and deploy!