Upgrade TNG Genealogy Software
I use TNG (The Next Generation of Genealogy Sitebuilding) to run www.furney.org. The next version (v11) is out.
- Back up existing files
cd /var/www/furney.org/backups
mkdir 20160320 && cd 20160320
cp ../../*.config .
(config.php, importconfig.php, logconfig.php, mapconfig.php)cp ../../footer.php
cp ../../index.*
(index.html, index.php)cp ../../meta.php
- Back up database tables
- Go to Admin > Utilities > Select all > Back up
mv ../*.bak .
- Download new files
cd /var/www
curl http://tng.lythgoes.net/downloads11/tngupgrade1013-1100.zip -o tngupgrade1013-1100.zip -u username
unzip tngupgrade1013-1100.zip -d tngupgrade1013-1100
- Check any differences for curiosity and to see which files would be missing if you just deleted all existing files and copied the new files in fresh
diff -rq furney.org/ tngupgrade1013-1100 | grep "Only in furney.org"
- Copy new files over existing files (subsequent step does the template directory too, so do that now anyway)
cp -r tngupgrade1013-1100/* furney.org/
- Open the upgrade readme file (readme1013-1100.html) in a web browser
- Run the upgrade fileops script
- Go to Config > General Settings > Table Names and add in the names for the 2 new tables as per suggestion
- Run the database upgrade script
- Delete all the upgrade files from the site