Line 46: |
Line 46: |
| === Backup and restore === | | === Backup and restore === |
| You should backup /etc/dokuwiki and /var/lib/dokuwiki (which store configuration and data respectivly) | | You should backup /etc/dokuwiki and /var/lib/dokuwiki (which store configuration and data respectivly) |
| + | |
| + | |
| + | === Manual upgrade === |
| + | |
| + | {{Warning box| This is work in progress!}} |
| + | |
| + | I had an existing RPM install and wondered if I could upgrade. |
| + | |
| + | The latest fedora RPMs are patched to remove compose code from the dokuwiki code and use rpms. |
| + | |
| + | I thought I would try and see if compose would work. |
| + | |
| + | First I installed compose. See this link: |
| + | |
| + | https://wiki.koozali.org/PHP#Installation_of_Composer |
| + | |
| + | Next we get a copy of the dokuwiki code. Go here and get a download link: |
| + | |
| + | https://download.dokuwiki.org/ |
| + | |
| + | cd ~ |
| + | mkdir -p /root/dokuwiki |
| + | wget https://download.dokuwiki.org/out/dokuwiki-c98g4519b5d16cfdee29a855275c5759f.tgz |
| + | |
| + | Or from here (check the latest release): |
| + | https://github.com/dokuwiki/dokuwiki/releases/download/release-2024-02-06a/dokuwiki-2024-02-06a.tgz |
| + | |
| + | tar -zxvf dokuwiki-2024-02-06a.tgz |
| + | cd dokuwiki |
| + | chown -R apache:www |
| + | |
| + | Backup |
| + | |
| + | mkdir /root/dokuwiki-backup |
| + | cp -r /etc/dokuwiki/* /root/dokuwiki-backup/etc/dokuwiki |
| + | cp -r /var/lib/dokuwiki/* /root/dokuwiki-backup/var/lib/dokuwiki |
| + | |
| + | Copy file over withouth trashing the remote symlinks to /etc/and /var |
| + | |
| + | rsync -av -K /root/dokuwiki/dokuwiki/* /usr/share/dokuwiki/ |
| + | |
| + | cd /usr/share/dokuwiki |
| + | chown -R apache:www * |
| + | |
| + | Check you can access the wiki. |
| + | |
| + | Now clean up the old files: |
| + | https://www.dokuwiki.org/install:unused_files |
| + | |
| + | cd /usr/share/dokuwiki |
| + | grep -Ev '^($|#)' data/deleted.files | xargs -n 1 rm -vf |
| + | |
| + | I may try and build an RPM to update this way at some stage. |
| + | |
| | | |
| === Uninstall === | | === Uninstall === |