Hi all,
I have written a script which backup a copy of our virtual machines to a remote machine making the process of backing up totally autonomous however part of my script need to handle shutting down the VM and bring them back on, below is a sample of the action performed in the script.
ssh alec@59.167.246.194 'shutdown now' >> VMCOPY.log 2>&1
ssh root@192.168.168.168 'vim-cmd vmsvc/power.off 9' >> VMCOPY.log 2>&1
ssh root@192.168.168.168 'scp -r /vmfs/volumes/datastore2/Kayako/ root@192.168.168.172:/vmfs/volumes/datastore1/Kayako/' >> VMCOPY.log 2>&1
ssh root@192.168.168.168 'vim-cmd vmsvc/power.on 9' >> VMCOPY.log 2>&1
I need to make it so that the virtual machine shutdown safely rather them being feeling like they just had the power switch off and possibly corrupting the systems.
does anyone know if there is a setting which does this?