Code: Select all
Asnp VeeamPSSnapin
$Jobs = Get-VBRJob
foreach ($Job in $Jobs)
{
$jname = $job.name
$Options = $Job.GetOptions()
$retentionpri=$Options.backupstorageoptions.retaincycles
Write-Host "$jname Primary: $retentionpri"
}
Some backup-jobs are repository-based and others based on Netapp Snapshots.
The former are transported with backup-copy-jobs, the latter with ONTAP Snapvault
The list I get with above script does include the backup-copy jobs, so this is covered. (for the output it would be nice to have that in the same line as the primary job)
But for the Snapvaults I can't seem to find the correct command.
Best regards
Markus