Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docker_notes:docker-dokuwiki [2026-04-04 Sat wk14 07:57] – [Dokuwiki Container] baumkp | docker_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:// | This uses the [[https:// | ||
| - | 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 | ||
| </ | </ | ||
| + | ++++ | ||
| + | ++++docker.yaml| | ||
| <code yaml>--- | <code yaml>--- | ||
| services: | services: | ||
| Line 30: | Line 31: | ||
| # - 443:443 #optional | # - 443:443 #optional | ||
| restart: unless-stopped </ | restart: unless-stopped </ | ||
| + | ++++ | ||
| ====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. | ||
| + | ===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/ | *The dokuwiki image uses the following permanent volume storage, in config/ | ||
| *conf (basically copy everything from existing to here) | *conf (basically copy everything from existing to here) | ||
| - | *data (basically copy everything from existing to here) | + | |
| - | * inc -> / | + | *inc -> / |
| - | * lib (basically copy everything from existing to here) | + | *lib (basically copy everything from existing to here) |
| - | * vendor -> / | + | *vendor -> / |
| + | |||
| + | ++++wiki_to_local.wiki_copy.sh| | ||
| + | <code bash> | ||
| + | # | ||
| + | # script to copy main wiki to local wiki | ||
| + | |||
| + | #cp flags: -r => recurse (into sub-directories), | ||
| + | |||
| + | #s_d => source directory | ||
| + | s_d="/ | ||
| + | |||
| + | #d_d => destination directory | ||
| + | d_d="/ | ||
| + | |||
| + | #sub_d => sub-directory, | ||
| + | sub_d=" | ||
| + | rm -r $d_d$sub_d | ||
| + | cp -rp $s_d$sub_d $d_d$sub_d | ||
| + | |||
| + | sub_d=" | ||
| + | rm -r $d_d$sub_d | ||
| + | cp -rp $s_d$sub_d $d_d$sub_d | ||
| + | |||
| + | sub_d=" | ||
| + | rm -r $d_d$sub_d | ||
| + | cp -rp $s_d$sub_d $d_d$sub_d | ||
| + | |||
| + | </ | ||
| + | To use: '' | ||
| + | ++++ | ||
| The DokuWiki page [[https:// | The DokuWiki page [[https:// | ||