3 ms·
Every server of mine has "history" in a form of script that can rebuild it from the scratch on brand new clean machine. Every time anything is added / modified
by FpUser 5y ago
Every server of mine has "history" in a form of script that can rebuild it from the scratch on brand new clean machine. Every time anything is added / modified the script is ran on clean machine to test if all still works as supposed. My databases are all automatically backed to a different backup servers and are restored when needed by the same script.
So for me setting up new server involves following steps:
1) Modify config portion of the script (basically change default values if needed) and run said script on a new server
2) Test
3) Put old server into "read only mode"
4) Run script again with the option to restore the database only.
5) Switch DNS
There are/could be slight variations of course. Practically, I did recent migration of the new server for new product that was running on my location in Toronto to Hetzner. It took a "whopping" 15 minutes of which 13 been taken by restoring database from backup.