Direkt zum Inhalt

how to backup a virtual machine prior to have shutdown it

Thread needs solution

hi to all,

for various reasons, on some virtual machines, we prefer to backup when they where powered off.

Is there a way to do so using only che acronis scheduler on the management console? the flow should be this:

- shutdown the virtual machine

- backup the virtual machine

- power on the virtual machine

of course the power on may be done just after that the acronis backup has done the snapshot (I imagine when the file vmsn is removed); with the goal to keep the vm off only the time needed. thank you in advice

0 Users found this helpful
frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Beiträge: 22
Kommentare: 3800

Hi,

Currently there is a possibility to use pre/post commands from backup options to execute batch scripts before and after backup is taken. Note however that this would work only if your Agent is running on Windows machine e.g. you should use "Agent for VMware (Windows)" (or Agent for Hyper-V) rather than "Agent for VMware (Appliance)". See attached screen shot + batch + .ps1 script files illustrating the setup which I've created. Example for vSphere environment:

1) First of all you need to download vSphere PowerCli and install it onto the same machine where "Agent for VMware (Windows)" is installed

2) Create .ps1 + .bat scripts in some folder. Samples of .bat + corresponding .ps1 scripts are attached in .zip (it will power off VM before backup and power it on after backup completes)

3) When creating backup plan set up the Backup Options -> Pre/post commands and add path to the batch files.

In the next update for Acronis Backup 12 we will also support execution of the same scripts in "pre/post data capture" commands, which will effectively execute the script before backup, then take a snapshot of the VM, and then run the post data capture script, so the actual backup data will be read only after the post data capture script finishes, e.g. the VM will be powered off only for snapshot creation period, rather than for the whole backup duration.

Thank you.

Anhang Größe
408293-137701.png 27.67 KB
408293-137704.zip 1.09 KB

thank you for the prompt reply,

so I assume that actually (until the next update), the only way to keepening the vm off only for the time needed for snapshot, is to schedule the power off/on a part, actually i'm doing this with the windows task scheduler of the acronis management console, where i have also installed the vsphere cli..  I also done a script wich checks for the vmsn file appear/disappear on the vm datastore to check if snapshot is started and ended... of course this isn't the state of the art but it works...