PowerShell script exchange
Post Reply
LEWISF
Enthusiast
Posts: 58
Liked: 5 times
Joined: Apr 09, 2023 7:50 pm
Contact:

PS commands to get File Backup job details

Post by LEWISF »

Pretty sure this is a simple request for the experts. I just need to get a PS line that will give me the details of a File Backup job that I am running. The source objects in the job are a bunch of folders and I need that info in the output.

TIA.
mjr.epicfail
Veeam Legend
Posts: 532
Liked: 146 times
Joined: Apr 22, 2022 12:14 pm
Full Name: Danny de Heer
Contact:

Re: PS commands to get File Backup job details

Post by mjr.epicfail »

Hi TIA,

Did you check this extensive repository: https://github.com/VeeamHub/powershell ?
VMCE / Veeam Legend 2*
LEWISF
Enthusiast
Posts: 58
Liked: 5 times
Joined: Apr 09, 2023 7:50 pm
Contact:

Re: PS commands to get File Backup job details

Post by LEWISF »

Thank you. I will look at that.
david.domask
Veeam Software
Posts: 2863
Liked: 657 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: PS commands to get File Backup job details

Post by david.domask »

Hi LEWISF,

You can pass the results of Get-VBRUnstructuredBackupJob to Get-VBRJobObject for a convenient list of what's being backed up:

Code: Select all

$job = Get-VBRUnstructuredBackupJob -Name "NAS-wikipedia"
Get-VBRJobObject -Job $job

Name                      Type       ApproxSize       Location
----                      ----       ----------       --------
\\fileserver-01\wiki      Include    0 B              \\fileserver-01\wiki
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests