This guide assumes you are upgrading a source code- or RPM-installed MindTouch Deki from v.8.05 to 8.08. If you are upgrading from an earlier version, please visit http://wiki.opengarden.org/Deki_Wiki/Installation_and_Upgrade to find your appropriate guide.

Back Up Attachments

Type the following commands to create the backup directory and back up your attachments: 

# mkdir ~/deki_backup
# cd /var/www/dekiwiki/
# tar cvzpf ~/deki_backup/attachments.tar.gz /var/www/dekiwiki/attachments

Back Up Settings Files

Enter the following commands to back up the files that MindTouch Deki uses to determine settings: 

# cp /var/www/dekiwiki/LocalSettings.php ~/deki_backup
# cp /etc/dekiwiki/mindtouch.deki.startup.xml ~/deki_backup
# cp /etc/dekiwiki/mindtouch.host.conf ~/deki_backup

Note: If you have any site modifications such as custom skins, CSS, or resource file modifications, they must be backed up now as well and restored after the upgrade.

Backup your MySQL Database

Use the following line to back up the MySQL database: 

# mysqldump -u<user> -p<password> wikidb > ~/deki_backup/wikidb.sql

Download The New Package

Download the MindTouch Deki Kilen Woods build from one of the following sources:

Install The New Package

Type the following lines to expand and move the files to their correct location:

# cd ~/
# tar xfvz Deki_Wiki_8.08_Kilen_Woods_source.tar.gz
# cd Deki_Wiki_8.08_Kilen_Woods_source/
# rm -rf /var/www/dekiwiki
# mkdir /var/www/dekiwiki
# cp -r web/* /var/www/dekiwiki

Restore Files

Type the following commands to restore the attachments and settings files: 

# cd ~/deki_backup
# cp LocalSettings.php /var/www/dekiwiki/
# tar xvzpf attachments.tar.gz -C /var/www/dekiwiki/
# cp mindtouch.deki.startup.xml /etc/dekiwiki/
# chown -R www-data /var/www/dekiwiki/

 

Run DB Update Script

# cd /var/www/dekiwiki/maintenance
# php update-db.php

 

Clean Up The Skins Cache Folder

Enter the following lines to clear the skins cache:

# cd /var/www/dekiwiki/skins/common/cache/
# rm -rf cache-*

Start Dekihost

# /etc/init.d/dekiwiki restart

Launch a web browser, and clear the cache. Connect to your wiki by typing in http://IP_ADDRESS, where IP_ADDRESS is the IP of your linux machine. Click on Tools, then About to verify that  you are using version 8.05.

Rebuild the Index

In the wiki, click on Tools, then Control Panel, and then Site Settings.Click Rebuild Index to re-index the wiki.

Tag page
Viewing 2 of 2 comments: view all
Are you missing the restore db here? I'm having trouble opening attachments following a backup and restore to new 8.08 installation. Looking for help here for that. Thanks, MattA
Posted 17:24, 3 Oct 2008
matta: I had a similar issue after upgrading from 8.05 on an Ubuntu 8.04-LTS system. When i checked the dekiwiki folder on my server I noticed that the command given above "tar xvzpf attachments.tar.gz -C /var/www/dekiwiki/" didn't restore the items to my new dekiwiki folder for some reason. There was no attachments folder present in my dekwiki folder. I was able to navigate to the location i had stored the backup attachments.tar.gz, unzip it using gunzip followed by tar -xvf, then I copied the attachments folder over to the new dekiwiki folder, reran the chmod command listed above and everything works swimmingly.
Posted 17:43, 23 Jan 2009
Viewing 2 of 2 comments: view all
You must login to post a comment.