This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get remove docker docker-engine docker.io containerd runc | |
| sudo apt-get update | |
| sudo apt-get install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg-agent \ | |
| software-properties-common | |
| sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo apt-key fingerprint 0EBFCD88 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| backup(){ | |
| location=`sudo docker inspect $1|grep _data|awk -F '"' '{print $4}'` | |
| sudo mkdir -p /root/all-backup/$1/ | |
| sudo cp $location /root/all-backup/$1/ -R | |
| } | |
| read -p "Masukan List ID Container :" list_container | |
| IFS=$'\r\n' GLOBIGNORE='*' command eval 'id_container=($(cat $list_container))' | |
| for (( i = 0; i < "${#id_container[@]}"; i++ )); do | |
| container="${id_container[$i]}" |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . | |
| .. | |
| ........ | |
| @ | |
| * | |
| *.* | |
| *.*.* | |
| 🎠|