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 08:00] – [Todo] baumkp | docker_notes:docker-dokuwiki [2026-04-05 Sun wk14 08:01] (current) – [backup wiki data] baumkp | ||
|---|---|---|---|
| Line 34: | Line 34: | ||
| ====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:// | ||