Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker_notes:docker-dokuwiki [2026-04-04 Sat wk14 07:57] – [Dokuwiki Container] baumkpdocker_notes:docker-dokuwiki [2026-04-05 Sun wk14 08:01] (current) – [backup wiki data] baumkp
Line 6: Line 6:
 =====Dokuwiki Container===== =====Dokuwiki Container=====
 This uses the [[https://www.linuxserver.io/|linuxserver.io]] image from dockerhub, [[https://hub.docker.com/r/linuxserver/dokuwiki/#!|linuxserver/dokuwiki]].  The Linuxserver.io documents can be found here[[https://docs.linuxserver.io/|doc.linuxserver.io]].\\ This uses the [[https://www.linuxserver.io/|linuxserver.io]] image from dockerhub, [[https://hub.docker.com/r/linuxserver/dokuwiki/#!|linuxserver/dokuwiki]].  The Linuxserver.io documents can be found here[[https://docs.linuxserver.io/|doc.linuxserver.io]].\\
-Defines web_data volume:+++++Defines web_data volume:|
 <code bash> <code bash>
 #Not USED #Not USED
Line 14: Line 14:
     --opt o=bind cloud_data     --opt o=bind cloud_data
 </code> </code>
 +++++ 
 +++++docker.yaml|
 <code yaml>--- <code yaml>---
 services: services:
Line 30: Line 31:
     #  - 443:443 #optional     #  - 443:443 #optional
     restart: unless-stopped </code>     restart: unless-stopped </code>
 +++++
 ====Todo==== ====Todo====
   *Need to create a local LAN only functional back-up of the wiki in my back-up server so I have a backup in case the main wiki with my configuration notes becomes unavailable.   *Need to create a local LAN only functional back-up of the wiki in my back-up server so I have a backup in case the main wiki with my configuration notes becomes unavailable.
-  * +=====Backup===== 
-====Backup====+====backup server==== 
 +This wiki is used to help setup and maintain my home servers / lab, so if the server becomes unavailable it can become difficult to maintain the lab servers.  Hence this wiki is installed on 2 servers, the main one with a public facing web page and a duplicated back-up on a local only facing web page.  I only intermittantly copy the contents to the backup server.  The following is the back up script. 
 +===backup wiki data===
 Some of the following nuances may help when transferring Dokuwiki servers: Some of the following nuances may help when transferring Dokuwiki servers:
   *The dokuwiki image uses the following permanent volume storage, in config/dokuwiki:   *The dokuwiki image uses the following permanent volume storage, in config/dokuwiki:
     *conf  (basically copy everything from existing to here)     *conf  (basically copy everything from existing to here)
-     *data  (basically copy everything from existing to here) +    *data  (basically copy everything from existing to here) 
-    * inc -> /app/www/public/inc (symlink back to container, no point changing) +    *inc -> /app/www/public/inc (symlink back to container, no point changing) 
-    * lib  (basically copy everything from existing to here) +    *lib  (basically copy everything from existing to here) 
-    * vendor -> /app/www/public/vendor (symlink back to container, no point changing)+    *vendor -> /app/www/public/vendor (symlink back to container, no point changing) 
 + 
 +++++wiki_to_local.wiki_copy.sh| 
 +<code bash> 
 +#!/bin/bash 
 +# script to copy main wiki to local wiki 
 + 
 +#cp flags: -r => recurse (into sub-directories), -p= maintain source metadata. 
 + 
 +#s_d => source directory 
 +s_d="/mnt/docker_store/router_backup/wiki/config/dokuwiki/" 
 + 
 +#d_d => destination directory 
 +d_d="/mnt/docker_store/wiki/config/dokuwiki/" 
 + 
 +#sub_d => sub-directory, see list of sub directories above to be copied. 
 +sub_d="conf" 
 +rm -r $d_d$sub_d 
 +cp -rp $s_d$sub_d $d_d$sub_d 
 + 
 +sub_d="data" 
 +rm -r $d_d$sub_d 
 +cp -rp $s_d$sub_d $d_d$sub_d 
 + 
 +sub_d="lib" 
 +rm -r $d_d$sub_d 
 +cp -rp $s_d$sub_d $d_d$sub_d 
 + 
 +</code> 
 +To use: ''sudo bash wiki_to_local.wiki_copy.sh'' 
 +++++ 
 The DokuWiki page [[https://www.dokuwiki.org/faq:backup|How to backup DokuWiki?]] has the basic information to backup a Dokuwiki. The DokuWiki page [[https://www.dokuwiki.org/faq:backup|How to backup DokuWiki?]] has the basic information to backup a Dokuwiki.