PowerShell script exchange
Post Reply
scrat
Enthusiast
Posts: 54
Liked: 4 times
Joined: Jul 26, 2022 5:14 pm
Contact:

File Copy Sessions

Post by scrat »

Hi team,
It is possible show the "file copy" sessions? As the guide says, the cmdlet "Get-VBRSession" does not return sessions for VM copy and file copy jobs.

Thanks,
Regards.
david.domask
Veeam Software
Posts: 2331
Liked: 554 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: File Copy Sessions

Post by david.domask »

Hi scrat,

That's kind of interesting note in the User Guide; I'm not sure why it's there as you can clearly pass the type "Copy" to Get-VBRSession -Type and it will return sessions:

Code: Select all

PS C:\Users\david.LAB> Get-VBRSession -Type Copy | select id, name, jobid, Log

Id                                   Name         JobId                                Log
--                                   ----         -----                                ---
ef7505be-2cf4-41fa-8b34-e209d4dc3d0a ps-copy-test a52ef7de-cb6a-4849-9be3-0495fdb67cf7 {Id: 14499117, Usn: 220634540...
bf55fa77-700c-4a59-886d-472977ea43c8 quick-copy   d1d4c914-8458-4a70-a2df-2879ff58dc47 {Id: 13799912, Usn: 213005614...
c16361b1-a09e-414e-95b7-d1ce5ee2e988 quick-copy   d1d4c914-8458-4a70-a2df-2879ff58dc47 {Id: 13627880, Usn: 211589172...


Get-VBRJob -WarningAction SilentlyContinue | Where-Object {$_.JobType -eq 'Copy'} | select id, name, jobtype, Result

Id                                   Name         JobType Result
--                                   ----         ------- ------
fc17e1f9-7c7b-4544-a86e-82c2e61970a5 moref-upload    Copy
a52ef7de-cb6a-4849-9be3-0495fdb67cf7 ps-copy-test    Copy
d1d4c914-8458-4a70-a2df-2879ff58dc47 quick-copy      Copy
I will write our Technical Writer Team and ask them to clarify that statement, it's possible there's some nuance here we're not understanding but it definitely looks like it's working. Are you seeing unexpected results in your environment when you're testing?
David Domask | Product Management: Principal Analyst
scrat
Enthusiast
Posts: 54
Liked: 4 times
Joined: Jul 26, 2022 5:14 pm
Contact:

Re: File Copy Sessions

Post by scrat »

Nice work David! It's working! And yes, it's neccesary modify the following doc:

https://helpcenter.veeam.com/docs/backu ... 0Important
Consider the following:
This cmdlet does not return sessions for VM copy and file copy jobs.
To get tape backup job sessions, tun the Get-VBRTapeBackupSession cmdlet.


Thank you very much,
Regards.
david.domask
Veeam Software
Posts: 2331
Liked: 554 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: File Copy Sessions

Post by david.domask »

Glad it's working for you, but I will follow up in this topic when I hear from our Technical Writers; perhaps there is a nuance we aren't aware of, but at first blush looks like it works just fine. :)
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests