Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 9994

PowerShell • Re: i want to get backup report everyday.

$
0
0
Hi shahn,

Agree with Ben here, we need to know errors or what's happening to help :)

But, your script is using unsupported methods (section 5.8~) and I do not advise using these unless you're prepared to research and learn them on your own and prepared for the potential risks.

With supported methods, you can just do:

Code:

$PluginSess = Get-VBRPluginBackupSession -Name "some job name or part of the name with wild cards" | Sort -Property CreationTime -Descending$AllPSessData = Get-VBRBackupSession -Id $PluginSess.id
$AllPSessData will now have full CBackupSession objects for your plugin backup sessions. Each of the CBackupSession can be further passed to Get-VBRTaskSession on the -Session parameter to get the further details.

Play with that a bit and see if you can get your script going.

Statistics: Posted by david.domask — Jul 18, 2024 11:47 am



Viewing all articles
Browse latest Browse all 9994

Latest Images

Trending Articles



Latest Images