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
computer_science:docker:docker_dokuwiki_portable [2020/07/28 12:50] – Gramamr carlossousacomputer_science:docker:docker_dokuwiki_portable [2023/12/01 12:07] (current) – external edit 127.0.0.1
Line 172: Line 172:
 We can easily migrate the data by grabbing everything in the mounted volumes and collecting them into a tar(ball). We can easily migrate the data by grabbing everything in the mounted volumes and collecting them into a tar(ball).
  
-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.1595940608.txt.gz
  • Last modified: 2023/12/01 12:07
  • (external edit)