Schedule snapshot creation and removal?

This post was originally published on this site

Hi All,

 

I have a need to take a daily snapshot of a VM.  I need to keep the snapshots for a set number of days.  Usually 3 days is long enough, but sometimes the request is to keep for longer.  I know I can take a snapshot using a PowerCLI script, and schedule it daily from a scheduled task.  But can I automate the deletion of any snapshot over 3 days old?

 

I’m a PowerCLI novice, and don’t currently have the skills to pull this off.  So any help here would be greatly appreciated.

 

Thanks in advance,

Geob

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.