PowerShell script exchange
Post Reply
matteu
Veeam Legend
Posts: 821
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Backup method

Post by matteu »

Hello,

I would like to find which backup method is used per job but I don't find it.
I just find (Get-VBRJobOptions -Job test).BackupTargetOptions.Algorithm with 2 values.
Synthetic when reverse incremental is check and all the other possibilities are "increment".

I would like to get :
Reverse incremental with / without active full
Incremental with/without Synthetic Full and With/without Active Full backup

I just need to know the powershell command to know which box are checked in the GUI. I find all datas I want for days / month.
matteu
Veeam Legend
Posts: 821
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Backup method

Post by matteu »

OK I find it here :

SyntheticFullEnabled = (get-vbrjob).backuptargetoptions.TransformFullToSyntethic
ActiveFullEnabled = (get-vbrjob).backupstorageoptions.EnableFullBackup
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Backup method

Post by oleg.feoktistov » 1 person likes this post

Hi,

Exactly. Usually, I use the script below to view these options for all backup jobs:

Code: Select all

$jobs = Get-VBRJob | where {$_.JobType -eq 'Backup'}
foreach ($job in $jobs) {
 $algorithm = $job.BackupTargetOptions.Algorithm
 $syntheticFullsEnabled = $job.BackupTargetOptions.TransformFullToSyntethic
 $activeFullsEnabled = $job.BackupStorageOptions.EnableFullBackup
 $algorithmKind
 if ($algorithm -eq 'Syntethic') {
   $algorithmKind = 'ReverseIncremental'
 }

 else  {
   $algorithmKind = $algorithm
 }

 $job | select Name, @{n='Algorithm';e={$algorithmKind}}, `
 @{n='SyntheticFullsEnabled';e={$syntheticFullsEnabled}}, @{n='ActiveFullsEnabled';e={$activeFullsEnabled}} 
 }
Thanks,
Oleg
matteu
Veeam Legend
Posts: 821
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Backup method

Post by matteu »

Thank you for your answer
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests