Discussions specific to the VMware vSphere hypervisor
Post Reply
yerassell
Lurker
Posts: 1
Liked: never
Joined: Nov 25, 2019 3:32 am
Full Name: Yerassyl Aip
Contact:

Shut down virtual machine before Backup jobs

Post by yerassell »

I have to shut down virtual machine before starting backup jobs, and power on after backup jobs. I know i can do it with scripts. But i can't imagine how to power on after backup. May be you know how to fix it?

HannesK
Veeam Software
Posts: 5657
Liked: 769 times
Joined: Sep 01, 2014 11:46 am
Location: Austria
Contact:

Re: Shut down virtual machine before Backup jobs

Post by HannesK » 1 person likes this post

Hello,
and welcome to the forums.

You can do that with a post-job script https://helpcenter.veeam.com/docs/backu ... l?ver=95u4

For example with PowerCLI and the Start-VM command.

Best regards,
Hannes

Andreas Neufert
Veeam Software
Posts: 4278
Liked: 789 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: Shut down virtual machine before Backup jobs

Post by Andreas Neufert » 2 people like this post

Important point is that you can not use both wit VM scripts. You have to do this with Job Pre Post scripts.

The reason for the the shutdown script is, that we check the end result of the script and when there is no answer (shut down VM) we will let the job fail.

The suggestion is to look into VMware PowerCLI scripts to shutdown VMs and start them afterwards.

But overall why do you want to do this? The reason why I am asking is that Veeam actually set some stuff in the OS so that the OS is aware of a potential restore situation later. This is very important for some of the application that depend on this information. Better to just stop the service for the applications that do not support VSS or just bring them into bakup mode?

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests