Forget unavailable backups via powershell?

PowerShell script exchange

Forget unavailable backups via powershell?

Veeam Logoby daniel_rogers » Tue May 30, 2017 12:11 am

Hello!

Just wondering if it is possible to trigger the 'Forget -> All unavailable backups' via powershell.

- I am using Veeam Agent for Windows
- Only performing 1 backup per week (FULL)
- Only wish to keep 1 week retention
- Powershell script runs weekly to delete files across the repo -le 7 days
- Kicks off a Rescan-VBREntity -AllRepositories afterwards to update the restore points as unavailable

It would be nice and clean if they could be forgotten/removed completely within the same process.

This is the manual documentation for the process: https://helpcenter.veeam.com/docs/backu ... tml?ver=95

Any ideas?
daniel_rogers
Influencer
 
Posts: 12
Liked: never
Joined: Tue Feb 03, 2015 6:53 am
Full Name: Daniel Rogers

Re: Forget unavailable backups via powershell?

Veeam Logoby v.Eremin » Wed May 31, 2017 10:42 am

You can remove unavailable backups from configuration, using Remove-VBRBackup cmdlet.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Forget unavailable backups via powershell?

Veeam Logoby daniel_rogers » Thu Jun 01, 2017 6:45 am

Hi Vladimir,

Thanks for replying. I saw that command but it will remove ALL the backups point. I wanted to run it in between the backup to disk and the tape kicking off to ensure it only writes the latest backup. That is a configurable option for the Veeam tape jobs but I don't know if it works 100%.

I might run Remove-VBRBackup across the Agent jobs pre-backup so it only makes one point anyway. Thanks!
daniel_rogers
Influencer
 
Posts: 12
Liked: never
Joined: Tue Feb 03, 2015 6:53 am
Full Name: Daniel Rogers

Re: Forget unavailable backups via powershell?

Veeam Logoby v.Eremin » Fri Jun 02, 2017 11:14 am

Are you saying that even if you specify for Remove-VBRBackup only unavailable backup entities, the cmdlet will still remove whole backup chain?
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests