This commit is contained in:
garfi 2023-08-28 22:39:42 +02:00
parent bb67de1dd2
commit 311c2477c6

View File

@ -3,10 +3,15 @@
# #
backup_dir="/mnt/box/backup/bk_auto_pveprod/" backup_dir="/mnt/box/backup/bk_auto_pveprod/"
timestamp=$(date +%Y%m%d%H%M%S) timestamp=$(date +%Y%m%d%H%M%S)
test
## BACKUP JEEDOM ## 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 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 ## 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 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
## BACKUP FRONTJULES
qm stop 103; sleep 60s; qemu-img convert -O qcow2 -f raw /dev/pve/vm-103-disk-0 $backup_dir/103_FRONTJULES_$timesstamp.qcow2; qm start 103
## BACKUP STOCK
qm stop 104; sleep 60s; cp /mnt/data/pve/images/104/vm-104-disk-0.qcow2 $backup_dir/104_STOCKJULES_$timesstamp.qcow2; qm start 104