computer_science:docker:docker_dokuwiki_portable

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
computer_science:docker:docker_dokuwiki_portable [2020/07/24 14:07] carlossousacomputer_science:docker:docker_dokuwiki_portable [2020/07/30 11:56] – [Backing Up / Migrating the Data] carlossousa
Line 10: Line 10:
  
 This documentation was also used successfully to deploy to a VPS. This documentation was also used successfully to deploy to a VPS.
 +
 +I will be using a pre-made image from [[https://hub.docker.com/u/mprasil|https://hub.docker.com/u/mprasil]], found under [[https://hub.docker.com/r/mprasil/dokuwiki|https://hub.docker.com/r/mprasil/dokuwiki]]. A copy of the Documentation from the Docker Image can be found [[:computer_science:docker:references:mprasil_dokuwiki|here]].
  
 I'm assuming you already have Docker and Docker-Compose installed. I'm assuming you already have Docker and Docker-Compose installed.
Line 25: Line 27:
 ===== Preparations due to LVM ===== ===== Preparations due to LVM =====
  
-First, after installing Ubuntu, we should expand the LVM to use the entire Fee Space available. This is/was an issue at the time of writing (17/07/2020)+First, after installing Ubuntu, we should expand the LVM to use the entire Free Space available. This is/was an issue at the time of writing (17/07/2020)
  
 <code bash> <code bash>
Line 60: Line 62:
  
 ---- ----
 +
  
 ===== Avoiding "sudo docker command" ===== ===== Avoiding "sudo docker command" =====
Line 170: Line 173:
  
 To do that we can create a file called **backtup_to_tar.sh** which when run will grab everything from //SOURCE_PATH// and output it into //BACKUP_PATH// with the name "dokuwiki_backup-date-time.tar" ex.: dokuwiki_backup-2020-07-24-13-21.tar To do that we can create a file called **backtup_to_tar.sh** which when run will grab everything from //SOURCE_PATH// and output it into //BACKUP_PATH// with the name "dokuwiki_backup-date-time.tar" ex.: dokuwiki_backup-2020-07-24-13-21.tar
- 
 <code bash> <code bash>
 #!/bin/bash #!/bin/bash
 SOURCE_PATH="/home/docker-user/dokuwiki" SOURCE_PATH="/home/docker-user/dokuwiki"
 BACKUP_PATH="/home/docker-user/backups" BACKUP_PATH="/home/docker-user/backups"
-tar cvf "$BACKUP_PATH"/dokuwiki_backup-$(date +"%Y-%m-%d-%H-%M").tar -C "$SOURCE_PATH" .+BACKUP_NAME="dokuwiki_backup" 
 +tar cvf "$BACKUP_PATH"/"$BACKUP_NAME"-$(date +"%Y-%m-%d-%H-%M").tar -C "$SOURCE_PATH" 
  
 </code> </code>
- 
-//// 
- 
- 
  
  
  • computer_science/docker/docker_dokuwiki_portable.txt
  • Last modified: 2023/12/01 12:07
  • by 127.0.0.1