Press "Enter" to skip to content

Script: distribute synthetic full backup across the whole week

Use the following script to distribute synthetic full backup execution across the whole week. It can be useful especially with dedupe appliances to avoid synthetic full storm on Saturday or Sunday.

asnp VeeamPSSnapin

[email protected]("Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday")

$d=0

$jobs=get-vbrjob -name "nomedelbackupjob" | ? {$_.JobType -eq "Backup"} | sort Name
foreach ($job in $jobs) {
  write-host $job.Name $days[$d]
  Set-VBRJobAdvancedBackupOptions -Job $job -Algorithm Incremental -TransformIncrementsToSyntethic $true -TransformIncrementsToSyntethic $false -TransformToSyntethicDays $days[$d] -EnableFullBackup $false
  $d++
  if ($d -ge $days.count) { $d = 0 }
}

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *