Required script - creation of the snapshot, keep for 24 hours, deleted and then repeat

Looking for a script that will perform the following functions

(1) create a snapshot of the virtual machine

(2) keep the snapshot of the machine virtual for a period of 24 hours (or anytime definable)

(3) remove the snapshot... .Rinse and repeat

Sort of a "backup" of 24 hours. One of our VMs finance must be able to quickly return to the config of the previous days

All licensees/aid

Thanks in advance

At its very simplest, you could do something in powershell and run every 24 hours on your virtual machine center:

#Add PowerCLI

Add-PSSnapin-name 'VMware.VimAutomation.Core '.

http://Reflection.Assembly: LoadWithPartialName ("vmware.vim")

$VCServer = "VCServer.

$VMName = "FinanceVM".

$SnapName = "NightlyBackupSnap".

$VM = get-VM-name $VMName

Remove-Snapshot - Snapshot (Get-Snapshot - name $SnapName - VM $VM) - confirm: $False

New-Snapshot - VM $VM - name $SnapName - suspend: $True - confirm: $False

Tags: VMware

Similar Questions

Maybe you are looking for