This commit is contained in:
garfi 2023-08-23 13:20:44 +02:00
parent b9ee367f52
commit 27678315c5

13
pve_jules_prod/bk.sh Normal file
View File

@ -0,0 +1,13 @@
GNU nano 7.2 bk.sh
# qm config 800
# pvesm path local-lvm:vm-101-disk-0
#
backup_dir="/mnt/box/backup/bk_auto_pveprod/"
timestamp=$(date +%Y%m%d%H%M%S)
## BACKUP JEEDOM
qm stop 101; sleep 60s; qemu-img convert -O qcow2 -f raw /dev/pve/vm-101-disk-0 $backup_dir/101_JEEDOM_$timestamp.qcow2; qm start 101
## BACKUP PRODJULES
qm stop 102; sleep 60s; qemu-img convert -O qcow2 -f raw /dev/pve/vm-102-disk-1 $backup_dir/102_PRODJULES_$timesstamp.qcow2; qm start 102