Avatar of Dan Sheridan
Dan SheridanFlag for United States of America

asked on 

How can you clean up daily VMWare vSphere snapshots automatically?

I am using VMWare vSphere 6.7 and it is doing daily snapshots.  After 30 days if no one has cleaned up these daily snaps, it stops taking new snaps.  I have not seen a setting for cleaning up daily auto snaps to either a schedule or to number or snapshots.

Does anyone know how to schedule snapshots?

VMwarevSphere

Avatar of undefined
Last Comment
Hello There
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

you can run a script to cleanup; probably tweaking the script a bit if you like or as-is running weekly or daily in task scheduler
would need powercli installed

Creating, Listing and Removing VM Snapshots with PowerCLi and PowerShell

https://captainvops.com/2017/01/30/creating-listing-and-removing-vm-snapshots-with-powercli-and-powershell/
Avatar of Dan Sheridan
Dan Sheridan
Flag of United States of America image

ASKER

One step closer.  How do you tell it to run this daily or weekly and tell it to remove older than 8 days old?
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

not sure if there is a way to automatically do it by age but if you run it, say every sunday, it will delete all of the snapshots which would be from the previous 7 days

you would run it as a schedule task
Avatar of Dan Sheridan
Dan Sheridan
Flag of United States of America image

ASKER

Per our customer requirements, I need to keep 8 days of snaps, so I cannot delete all
Please note snapshots are not backups, and VMs are not designed to run on snapshots for longer than 72 hours.

Performance can also be affected, along with other related issues. (corruption!), storage space issues.

Do you not backup the VM every day for a restore ?

I would advise your Customer of these issues.
Avatar of Dan Sheridan
Dan Sheridan
Flag of United States of America image

ASKER

We are doing hourly backups and also daily VMWare snaps.  I will talk with the customer.
ASKER CERTIFIED SOLUTION
Avatar of Hello There
Hello There

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
VMware
VMware

VMware, a software company founded in 1998, was one of the first commercially successful companies to offer x86 virtualization. The storage company EMC purchased VMware in 1994. Dell Technologies acquired EMC in 2016. VMware’s parent company is now Dell Technologies. VMware has many software products that run on desktops, Microsoft Windows, Linux, and macOS, which allows the virtualizing of the x86 architecture. Its enterprise software hypervisor for servers, VMware vSphere Hypervisor (ESXi), is a bare-metal hypervisor that runs directly on the server hardware and does not require an additional underlying operating system.

39K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo