-
- Influencer
- Posts: 11
- Liked: never
- Joined: May 10, 2019 9:48 am
- Full Name: Jimmy Grollman
- Contact:
Archive Backups - How to verify they exist?
Hi folks,
I have a backup job with the 'Keep certain full backups longer for archival purposes' selected, with 'Keep monthly full backups for 12 months' set.
I have been running this for two months now, how can I verify the end of month last backup is marked as archive? I can see them in the chain, but I cannot see any note/mark that says they are archive...
How do I verify these are marked as archive?
Best,
Jim
I have a backup job with the 'Keep certain full backups longer for archival purposes' selected, with 'Keep monthly full backups for 12 months' set.
I have been running this for two months now, how can I verify the end of month last backup is marked as archive? I can see them in the chain, but I cannot see any note/mark that says they are archive...
How do I verify these are marked as archive?
Best,
Jim
-
- Veeam Software
- Posts: 2013
- Liked: 671 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Archive Backups - How to verify they exist?
Hi Jimmy,
In the UI:
Right click on a backup in Backups node and select Properties. Restore points with GFS flags should be reflected with the corresponding letter under Retention column (W - weekly, M - monthly, Y - yearly). The View should look exactly as in this guide.
In Powershell:
Powershell code returns both restore points with GFS flags and future candidates for assignment.
To render only those with flags assigned amend the line in the loop accordingly:
Best regards,
Oleg
In the UI:
Right click on a backup in Backups node and select Properties. Restore points with GFS flags should be reflected with the corresponding letter under Retention column (W - weekly, M - monthly, Y - yearly). The View should look exactly as in this guide.
In Powershell:
Code: Select all
asnp VeeamPSSnapin
$backup = Get-VBRBackup -Name 'BackupName'
$restorepoints = Get-VBRRestorepoint -Backup $backup
#create empty guid as the method below takes backupId to exclude as a required parameter.
[guid]$guid = '00000000-0000-0000-0000-000000000000'
#get GFS candidates for the backup chosen. Pass empty guid as an argument to make sure nothing is excluded.
$objects = $backup.GetGfsCandidateStorageGroups($guid)
foreach ($object in $objects) {
$object.Candidates | select StorageFileName, CreationTimeUtc, Flags
}
To render only those with flags assigned amend the line in the loop accordingly:
Code: Select all
$object.Candidates | where {$_.Flags -ne 'None'} | select StorageFileName, CreationTimeUtc, Flags
Oleg
-
- Veeam Software
- Posts: 2013
- Liked: 671 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Archive Backups - How to verify they exist?
Seems like excludedPointId is ignored inside GetGfsCandidateStorageGroups() method after all, but still is required.
So, you might as well pass $backup.Id instead:
Cheers!
So, you might as well pass $backup.Id instead:
Code: Select all
$objects = $backup.GetGfsCandidateStorageGroups($backup.Id)
-
- Influencer
- Posts: 11
- Liked: never
- Joined: May 10, 2019 9:48 am
- Full Name: Jimmy Grollman
- Contact:
Re: Archive Backups - How to verify they exist?
Perfect, got it! Cheers.
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Nov 22, 2021 7:42 am
- Contact:
Re: Archive Backups - How to verify they exist?
Hello,
i am trying this:
but then i get this error:
here i am stuck
i am trying this:
Code: Select all
$backup = Get-VBRBackup -Name "myBackup"
$restorepoints = Get-VBRRestorepoint -Backup $backup
$objects = $backup.GetGfsCandidateStorageGroups($backup.Id)
Code: Select all
Cannot find an overload for "GetGfsCandidateStorageGroups" and the argument count: "1".
At line:1 char:1
+ $objects = $backup.GetGfsCandidateStorageGroups($backup.Id)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
here i am stuck
-
- Veeam Software
- Posts: 2013
- Liked: 671 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Archive Backups - How to verify they exist?
Hi,
Yep, looks like in 11a the signature of GetGfsCandidateStorageGroups() method changed. Now it gets current backup id automatically and requires guid excludedPointId along with includeCorrupted boolean. I used this example with zeroed guid to make sure nothing is excluded:
Best regards,
Oleg
Yep, looks like in 11a the signature of GetGfsCandidateStorageGroups() method changed. Now it gets current backup id automatically and requires guid excludedPointId along with includeCorrupted boolean. I used this example with zeroed guid to make sure nothing is excluded:
Code: Select all
$backup = Get-VBRBackup -Name 'BackupName'
$guid = '00000000-0000-0000-0000-000000000000'
$backup.GetGfsCandidateStorageGroups($guid, $false)
Oleg
Who is online
Users browsing this forum: No registered users and 9 guests