<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automated snapshot deletion after x number of days in VMware vSphere™ Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/Automated-snapshot-deletion-after-x-number-of-days/m-p/2873813#M40520</link>
    <description>&lt;P&gt;This VM is 2TB. It would be down all day trying to restore it from backup if we needed to.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 14:17:22 GMT</pubDate>
    <dc:creator>Bruticusmaximus</dc:creator>
    <dc:date>2021-10-22T14:17:22Z</dc:date>
    <item>
      <title>Automated snapshot deletion after x number of days</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/Automated-snapshot-deletion-after-x-number-of-days/m-p/2860073#M39832</link>
      <description>&lt;P&gt;Is there a way to automatically delete a scheduled snapshot after x number of days.&amp;nbsp; There's a VM that has issues and, we're constantly restoring it from backup.&amp;nbsp; I can schedule a daily snapshot of the VM but, I have to also remember to delete it every single day. Sure, i could do a power CLI script and schedule it to run with some scheduler but, I'd still have to check it every once in a while to make sure it's still running.&lt;BR /&gt;&lt;BR /&gt;I've put in a feature request to add "Delete snapshot after x days" when you schedule a snapshot.&lt;BR /&gt;&lt;BR /&gt;Way back, maybe 10 years ago when Vmware owned Shavlik for patching, you could apply Windows updates through Vmware Update Manager.&amp;nbsp; It worked great.&amp;nbsp; You could schedule it to take a snapshot of the VM before applying patches then, automatically delete the snapshot x number of days later.&amp;nbsp; We usually did it 2 days later. So I know the hooks are in there somewhere to do this.&amp;nbsp; Am I just missing something?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 13:17:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/Automated-snapshot-deletion-after-x-number-of-days/m-p/2860073#M39832</guid>
      <dc:creator>Bruticusmaximus</dc:creator>
      <dc:date>2021-07-30T13:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Automated snapshot deletion after x number of days</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/Automated-snapshot-deletion-after-x-number-of-days/m-p/2860122#M39834</link>
      <description>&lt;P&gt;Why not do a daily backup rather than take a daily snapshot that you then have to remember to delete?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 16:32:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/Automated-snapshot-deletion-after-x-number-of-days/m-p/2860122#M39834</guid>
      <dc:creator>scott28tt</dc:creator>
      <dc:date>2021-07-30T16:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Automated snapshot deletion after x number of days</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/Automated-snapshot-deletion-after-x-number-of-days/m-p/2873813#M40520</link>
      <description>&lt;P&gt;This VM is 2TB. It would be down all day trying to restore it from backup if we needed to.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 14:17:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/Automated-snapshot-deletion-after-x-number-of-days/m-p/2873813#M40520</guid>
      <dc:creator>Bruticusmaximus</dc:creator>
      <dc:date>2021-10-22T14:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Automated snapshot deletion after x number of days</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/Automated-snapshot-deletion-after-x-number-of-days/m-p/2892492#M41588</link>
      <description>&lt;P&gt;I have a powershell script that I've cobbled together from various sources.&lt;/P&gt;&lt;P&gt;&lt;A href="https://gitlab.com/dafyre/powershell-utils/-/blob/master/VMware/snapshotCleanup.ps1" target="_blank"&gt;https://gitlab.com/dafyre/powershell-utils/-/blob/master/VMware/snapshotCleanup.ps1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It will clean up snapshots based on a daily/weekly time phrase if the snapshot description matches "Daily Snapshot" or "Weekly Snapshot"&lt;/P&gt;&lt;P&gt;or you can pass in a parameter of what you want to match on.&lt;/P&gt;&lt;P&gt;This does require the VMware PowerCLI to work.&amp;nbsp; You must also be connected to the vCenter Instance(s) that you want to manage.&amp;nbsp; If you use the -daily or -weekly switches, create a file daily-list.txt or weekly-list.txt and enter one VM per line.&lt;/P&gt;&lt;P&gt;The script won't actually do anything if you don't run it with the -live parameter.&lt;/P&gt;&lt;P&gt;It's not completely automated, but it's better than having to sit and baby sit it.&amp;nbsp; If there's any questions, let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 20:02:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/Automated-snapshot-deletion-after-x-number-of-days/m-p/2892492#M41588</guid>
      <dc:creator>dafyre2010</dc:creator>
      <dc:date>2022-02-07T20:02:54Z</dc:date>
    </item>
  </channel>
</rss>

