Link to home
Start Free TrialLog in
Avatar of Matthew Cioffi
Matthew CioffiFlag for United States of America

asked on

Restore snapshots on VM servers weekly

So far after looking around for a while I cannot seem to find what I'm looking for.

We have some testing environments that we rebuild every Sunday.  Right now these are scattered across different machines and that have some issues.  What want to do is every Sunday evening reapply a snapshot of the server to return it to a baseline.  

We will build the VM to our gold standard then take a snapshot.  Once that is done we will release the environment to the users and they do what they do best.  Then Sunday evening I want to apply the snapshot we created after creating the gold standard, thus returning the environment to it's clean state.  Anyone have any suggestions?  Did I miss something in the VMCenter?

Thanks.
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Revert to Snapshot every Sunday evening using a PowerCLI script.

vCenter can schedule some tasks for automation

e.g. Deploy, Migrate, Create, Create a snapshot but not Revert.

See this Link

http://ict.myjewe.nl/ict/?p=192
Basic Revert to Snapshot for Snapshot called Baseline

Get-VM | `
ForEach-Object {
  Set-VM -VM $_ -Snapshot  (Get-Snapshot -VM $_ -Name Baseline) -Confirm:$false
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Matthew Cioffi

ASKER

Thanks, we will be digging into this over the next 5 days or so.  But that looks pretty much like what I need.