add vm
This commit is contained in:
parent
bb67de1dd2
commit
311c2477c6
@ -3,10 +3,15 @@
|
||||
#
|
||||
backup_dir="/mnt/box/backup/bk_auto_pveprod/"
|
||||
timestamp=$(date +%Y%m%d%H%M%S)
|
||||
test
|
||||
|
||||
## 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
|
||||
|
||||
## 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
|
||||
|
Loading…
Reference in New Issue
Block a user