List of things to help me remember what I am doing while re-installing the server. I will also use this to post details about the update procedure. Those details will be in a separate file called "status.md" and will only be created once the process has started.
**TODO list in order: **
- download all data (see next two lists)
- reinstall OS with 64bit and GRsec disabled (attempt deb-bootstrap, see here, see note on deb-bootstrap at end of file)
- if deb-bootstrap succeeds ignore the data restore steps, only copy configurations and non-home'd data
- first step of new OS: set up remote high speed access (sftp/ssh/pubkeyauth)
- copy over old host keys
- set up ssh on port 443 as well
- create new user
- copy over .ssh folder of old user on old server
- add new user to adm/sudoers
- copy over .profile/.bashrc/.bash_history
- restart ssh (and bite nails...)
- start copying the deltas over on upload PC (takes long time, start early)
- NOTE: if uploading the whole deltas is too much, prune to last 14 days and upload those
- install LAMP (apache/php/mysql/phpmyadmin ect ect)
- restore the DB backup(s)
- publish the website files again
- placeholder for www.admalledd.com/mc/map/index.html (about how the map was lost and has to re-render... later)
- www symbolic links
- /var/www/dl -> /home/admalledd/www/dl/
- /var/www/favicon.ico -> /home/admalledd/www/favicon.ico
- /var/www/mc -> /home/admalledd/www/mc/
- /var/www/php -> /home/admalledd/www/php
- /var/www/.htaccess
- shut down apache, copy phpmyadmin configs over
- /etc/phpmyadmin/*
- /etc/dbconfig-common/phpmyadmin.conf
- /usr/share/phpmyadmin/.htaccess
- check that phpmyadmin reports that all DB's have been restored
- check that the forum reports all posts are alive...
- install murmur, restore the murmur DB and key files
- copy over
cchelper
, start upcchelper.py
- make sure sb.admalledd.com server is first over, restart it
- /home/admalledd/starbound
- adv.admalledd.com next, start it up via mark2
- copy raw data (no auto backups!)
- /home/admalledd/minecraft/adventure
- mc.admalledd.com second to last, also start via mark2
- extract from deltas using rdiff-backup
- /home/admalledd/cur
- /home/admalledd/backup
- change backups to point to /home/admalledd/minecraft/backups/mc.admalledd.com/
- mod.admalledd.com last, stat inside of tmux/screen/byobu (make sure to change restart.sh to reflect...)
- extract from deltas using rdiff-backup
- /home/admalledd/dnstech
- /home/admalledd/backup_dnstech
- change backups to point to /home/admalledd/minecraft/backups/mod.admalledd.com/
- change all */plugins/simplecronclone/sayadmin-y.scc's to remove the notice of the re-install
- die from exhaustion
- get resurrected in time for DND later.
DELTAS TO COPY (WARNING: LARGE!)
/home/admalledd/minecraft/backup
(main server: mc.admalledd.com)/home/admalledd/minecraft/backup_dnstech
(dnstech: mod.admalledd.com)
DATA TO BACKUP THAT IS NOT PART OF THE DELTAS!!!
-
/home/admalledd/.ssh/*
-
/etc/ssh/*
-
/home/admalledd/(.profile|.bashrc|.bash_history)
-
/home/admalledd/.mark2rc.properties
-
/home/admalledd/.m2/*
-
/home/admalledd/www/*
-
/home/admalledd/minecraft/adventure/
-
/var/lib/mumble-server/*
-
/etc/phpmyadmin/*
-
/etc/dbconfig-common/phpmyadmin.conf
-
/usr/share/phpmyadmin/.htaccess
-
/home/admalledd/www/*
-
/var/www/.htaccess
DELTAS TO RSYNC AT LAST MINUTE
- /home/admalledd/minecraft/backup
- /home/admalledd/minecraft/backup_dnstech
- /home/admalledd/minecraft/adventure
mysqldump -u$DB_ADMIN_USER -p$DB_ADMIN_PWD --all-databases|gzip
TODO LATER
Things that I have to put off for later after the re-install. mostly things that need either lots of CPU, RAM, or bandwidth
- map render: this is put off due to it being over 200 gigs, the plan is that within 72 hours of the re-install I will start a from-scratch render will take about 3-12 days...
DEB-BOOTSTRAP
Thanks to some information found on the OVH forums and elsewhere it may be possible to re-install the OS without loosing everything under the /home/
partition. If this is the case then that means we only need to re-upload system-specific configurations (eg, usernames, passwords, installed software ect ect) This is experimental but gives me a chance to save about 5~ hours on the re-install waiting for data to be uploaded. Instructions above assume failure (considering I have never done a live re-install like this, better to plan for the worse.)