PowerShell script exchange
Post Reply
GabesVirtualWorld
Veteran
Posts: 253
Liked: 39 times
Joined: Jun 15, 2009 10:49 am
Full Name: Gabrie van Zanten
Contact:

Get info about Move backup job

Post by GabesVirtualWorld »

Hi
In the details of a "Move backup" job I can get info like: "19-5-2025 15:52:23 Succeeded 31 backups (4,6 TB) moved at 916 MB/s 1:28:03
". I can't however get this info through powershell or the API.

Get-VBRMoveBackupSession -id c55bc44b-9241-4948-b5ad-787a7a517d4d

Gives:

Code: Select all

TargetRepositoryId : 00000000-0000-0000-0000-000000000000 
TargetPath         : 
Backup             : {6fa9ef0e-3d3c-452c-8aee-1767b0c970d9, 42d8484d-0d70-4bfe-89d7-fb24cbd889d1, 415ad6b7-9877-4d2e-b7                      4e-a17f0184ad72} 
Name               : Move backup (xxxxxxxxxxxxx) 
CreationTime       : 19-5-2025 15:51:50 
EndTime            : 19-5-2025 18:05:27 
JobId              : f39153d2-42c9-4471-96ee-059a0ae678c1
Result             : Success 
State              : Stopped 
Id                 : c55bc44b-9241-4948-b5ad-787a7a517d4d
and with: Get-VBRSession -id c55bc44b-9241-4948-b5ad-787a7a517d4d

I get

Code: Select all

⁠Progress     : 100
RunManually  : True
Log          : {Id: 51384258, Usn: 2412267563, Title: Job started at 19-5-2025 15:51:50, Cookie: , Description: , Time:
                19-5-2025 15:51:53, StartTime: 19-5-2025 15:51:53, Status: Succeeded, Id: 51384259, Usn: 2412268700, Ti
               tle: Building the list of backups to process, Cookie: , Description: , Time: 19-5-2025 15:52:27, StartTi
               me: 19-5-2025 15:51:53, Status: Succeeded, Id: 51384260, Usn: 2412267633, Title: Job VCDVBS001_RTG_JOB_0
               01_OLD has been disabled successfully, Cookie: , Description: , Time: 19-5-2025 15:51:54, StartTime: 19-
               5-2025 15:51:54, Status: Succeeded, Id: 51384261, Usn: 2412267665, Title: Job xxxxxxx has
               been disabled successfully, Cookie: , Description: , Time: 19-5-2025 15:51:55, StartTime: 19-5-2025 15:5
               1:55, Status: Succeeded...}
Name         : Move backup (xxxxxxxx)
CreationTime : 19-5-2025 15:51:50
EndTime      : 19-5-2025 18:05:27
JobId        : f39153d2-42c9-4471-96ee-059a0ae678c1
Result       : Success
State        : Stopped
Id           : c55bc44b-9241-4948-b5ad-787a7a517d4d
But that is all the details I can get. What would be the next step to see how much data has been moved?
david.domask
Veeam Software
Posts: 2863
Liked: 657 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Get info about Move backup job

Post by david.domask »

Hi GabesVirtualWorld,

Regrettably, there are no supported or unsupported methods to retrieve this information at this time.

We can get a listing of the backups moved/copied with the following unsupported method:

Code: Select all

$sessLite = Get-VBRSession -Type PerVMMoveBackup | Sort -Property CreationTime -Descending #Use 'PerVmCopyBackup' for Copy Backup sessions
$exampleSess = $sessLite[0] #check most recent session
$result = [Veeam.Backup.DBManager.CDBManager]::Instance.MoveCopyTaskSessions.GetByJobSessionId($exampleSess.id)
$result | select id, jobsessionid, objectname, objectid |fl


Id           : 633beb6b-0526-4bea-9cf7-291c5aeb80fa
JobSessionId : 50c40a41-1a59-4d65-af1a-11bbcd6f11a4
ObjectName   : dd-tinyvm
ObjectId     : 7488967e-e8c2-4c6d-b815-25679790451a

Id           : 8f489844-f9dd-4081-a89a-5bf5fae7dfcd
JobSessionId : 50c40a41-1a59-4d65-af1a-11bbcd6f11a4
ObjectName   : dd-tinyvm3
ObjectId     : ca63df91-8797-4c85-87ed-13aeb0b0e460

Id           : bbdaa185-3530-46f6-91aa-9a328857f163
JobSessionId : 50c40a41-1a59-4d65-af1a-11bbcd6f11a4
ObjectName   : dd-tinyvm2
ObjectId     : f24852f8-9b66-407b-95ee-65a278cc2c91

#results truncated a bit for readability
Unfortunately the speed statistics are logged a bit uniquely and there isn't really a graceful way to retrieve this via Powershell at this time, so will just be the names and the result for now.
David Domask | Product Management: Principal Analyst
GabesVirtualWorld
Veteran
Posts: 253
Liked: 39 times
Joined: Jun 15, 2009 10:49 am
Full Name: Gabrie van Zanten
Contact:

Re: Get info about Move backup job

Post by GabesVirtualWorld »

Ah that is too bad. We're decommissioning a storage array by moving jobs and management wants to know what the progress is..... few Petabytes to go ;-)
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests