What's a slave and master? In postgresql, we can have a database called Replica, whose data is always synced with the primary database(Master). Slave is usually used for backup and read only.
This file contains 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
[servers] | |
192.168.102.2 | |
192.168.103.2 | |
192.168.100.139 |
virt-clone --original virtual_name_src --name new_name --file path/new_name.qcow2
virtual_name_src
for show all vm name:
virsh list --all
This file contains 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 | |
read -p "interface name: " intf | |
read -p "ip addr: " addr | |
read -p "sub net: " sub | |
read -p "gate way: " gate | |
read -p "dns ips: (format: 8.8.8.8, 1.1.1.1, 8.8.4.4): " dns | |
sudo touch /etc/netplan/01-netcfg.yaml |
curl -s https://api.github.com/repos/docker/compose/releases \
| grep "docker-compose-linux-x86_64" \
| cut -d : -f 2,3 \
| tr -d \" \
| grep -v "," \
| grep -v ".sha256" \
| head -n 1