1. Check favog is up well in advance. If it isn't, get Matt to start it
  2. Make sure Matt is available when you're planning to make the switch
  3. Ensure the Plot team are warned via their Facebook group (Clive, Matt, Nick Taylor or Raff can do this)
  4. Remind Matt before you start
  5. Tell Plot you are starting via Facebook
  6. Run cleanup utils on the mediawiki installs on merple
    1. details here ...
  7. On favog, as root
    systemctl stop mariadb
    systemctl stop jetty
    systemctl stop apache2
  8. On merple, as root
    1. Edit /etc/mediawiki_global.inc.php - ensure $wgReadOnly is set if you want to swap the servers
    2. systemctl stop mariadb
      systemctl stop jetty
      systemctl stop apache2
      rsync -avz --progress --partial-dir=.rsync-partial --delete /srv/www/htdocs favog:/srv/www/ --exclude mediawiki-public-images --exclude mediawiki-crew-empire-images
      rsync  -avz --progress --partial-dir=.rsync-partial --delete /var/lib/mysql/* favog:/var/lib/mysql/
      rsync  -avz --progress --partial-dir=.rsync-partial --delete /srv/www/htdocs/mediawiki-public-images favog:/home/websites/ --delete-excluded --exclude=pdf-book*
      rsync  -avz --progress --partial-dir=.rsync-partial --delete /srv/www/htdocs/mediawiki-crew-empire-images favog:/home/websites/
      scp /usr/share/jetty/website-jar-with-dependencies.jar favog:/usr/share/jetty/website-jar-with-dependencies.jar
      rsync  -avz --progress --partial-dir=.rsync-partial --delete /etc/apache2/ssl.* favog:/etc/apache2/
      systemctl start mariadb
      systemctl start jetty
      systemctl start apache2
  9. On favog, as root
    1. systemctl start mariadb
      systemctl start jetty
      systemctl start apache2
      /etc/cron.daily/ls2-build
    2. Edit /etc/mediawiki_global.inc.php - ensure $wgReadOnly is not set if you to make favog editable
  10. Get Matt to swap http/https over to favog on the router - leave ssh until you have confirmed everything is working
  11. Check it all
    1. Check the website is up.
    2. Check the wikis are up
    3. Check the wikis are editable
    4. Check ls2 is running and that you can search for a recent page
  12. Get Matt to swap ssh over
  13. Remind Matt to change beaker's DNS to point the CNAME live at favog instead of merple (www, crew, etc all CNAME to live)
  14. Check ssh now connects to favog
  15. Tell Plot the maintenance is complete via Facebook