Translations of this page?:

Step by step guide for alternative upgrade method

DELETEME This page was moved to alternativeupgradedetail

you should note, that this is with linux commands, where i will use wget for example, to download the tarballs, and tar to unpack it - so if you use windows, and has compiled/downloaded a windows version of diff/patch just unpack and download normally like windows

create a directory for temporary use, and change into it

redeeman@redeeman $ mkdir WikiUpgrade
redeeman@redeeman $ cd WikiUpgrade

Download the two versions of dokuwiki, your current and the version you desire to upgrade to(note, the output of wget i removed)

redeeman@redeeman $ wget http://www.splitbrain.org/Programming/PHP/DokuWiki/dokuwiki-2005-07-01.tgz
redeeman@redeeman $ wget http://www.splitbrain.org/Programming/PHP/DokuWiki/dokuwiki-2005-07-13.tgz

Unpack tarballs

redeeman@redeeman $ tar -xzf dokuwiki-2005-07-01.tgz
redeeman@redeeman $ tar -xzf dokuwiki-2005-07-13.tgz

Create patch

redeeman@redeeman $ diff -Naur dokuwiki-2005-07-01 dokuwiki-2005-07-13 > doku.diff

Run patch command with –dry-run to see affected files (NOTE, i have copied a version of my wiki into the WikiUpgrade dir for the purpose of this howto, dir is called “wiki”)

redeeman@redeeman $ cd wiki
redeeman@redeeman $ patch -p1 <../doku.diff --dry-run
patching file VERSION
patching file conf/wordblock.conf
patching file inc/actions.php
patching file inc/io.php
patching file inc/lang/cs/admin.txt
patching file inc/lang/cs/admin_acl.txt
patching file inc/lang/cs/lang.php
patching file inc/lang/en/lang.php
patching file inc/lang/no/lang.php
patching file inc/parser/handler.php
patching file inc/parser/xhtml.php
patching file inc/template.php
patching file lib/exe/spellcheck.php
patching file lib/scripts/spellcheck.js

here we can see which files it intendes to upgrade, and since i havent touched any of those, im happy! and accepts!

Apply Patch

redeeman@redeeman $ patch -p1 <../doku.diff
patching file VERSION
patching file conf/wordblock.conf
patching file inc/actions.php
patching file inc/io.php
patching file inc/lang/cs/admin.txt
patching file inc/lang/cs/admin_acl.txt
patching file inc/lang/cs/lang.php
patching file inc/lang/en/lang.php
patching file inc/lang/no/lang.php
patching file inc/parser/handler.php
patching file inc/parser/xhtml.php
patching file inc/template.php
patching file lib/exe/spellcheck.php
patching file lib/scripts/spellcheck.js

And now wiki is upgraded!

 
wiki/alternativeupgradedetail.txt · Last modified: 2006/11/13 14:48 by andi
 
Imprint Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsTranslate