Management reporting and documentation
Post Reply
bjdboyer
Service Provider
Posts: 60
Liked: 3 times
Joined: Nov 16, 2015 5:52 pm
Full Name: Bill Boyer
Contact:

Create backup job report for specific jobs

Post by bjdboyer »

We are backing up in a multi-tenant environment and a customer wants to have a report daily of the status of their backup and copy jobs. How can I create a report and specify specific jobs for the report?

TIA,
Bill
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Create backup job report for specific jobs

Post by Vitaliy S. »

Hi Bill,

In the latest backup jobs state report it is not possible to select the backup job (btw, a good feature request, we will need to add this option in our next update). As to the original request, then in multi-tenant infrastructures you can use VM backup status report. This report can be scoped to particular VMs. In order to this, you can save this report with the default settings and then login to Veeam ONE with the user that has access to specifc VMs only (in the vCenter Server). Every time this user generates/accesses the report he will only be shown his VMs with their latest backup state.

Another report that you can try to use is - historical backup job information. In this report you do have a way to select the backup job required. In the backup copy job selecting individual jobs is also possible.

Let me know if that helps!
bjdboyer
Service Provider
Posts: 60
Liked: 3 times
Joined: Nov 16, 2015 5:52 pm
Full Name: Bill Boyer
Contact:

Re: Create backup job report for specific jobs

Post by bjdboyer » 1 person likes this post

From the previous backup product we were able to get a simple report showing each VM with the latest restore point on the local repository (backup job) and on the backup copy repository. After lots of looking around and testing I came up with this code that will create a simple report of VM, Onsite date/time, and offsite date/time. The customer just wants to see that the latest backup is offsite. I'm sure this can be cleaned up, but right now it works.

Code: Select all

$OnsiteJobs = @("<List of backup job(s)")
$OffsiteJobs = @("<list of copy job(s)")
$vmpoints = @()

foreach ($job in $OnsiteJobs) {
    $backup = get-vbrbackup -name "$job"
    $names = @(Get-VBRRestorePoint -backup $backup  |  select name -Unique)
    foreach ($name in $names) {
        $point = (Get-VBRRestorePoint -backup $backup -name $name.name | sort-object creationtime  | select -last 1)
        $vmpoints += New-Object psobject -Property @{
                                "Name"=$point.Name;
                                "Onsite"=(get-date $point.CreationTime.Datetime)
                                "Offsite"=$null
                                }
        }
}

foreach ($job in $OffsiteJobs) {
    $backup = get-vbrbackup -name "$job"
    $names = @(Get-VBRRestorePoint -backup $backup  |  select name -Unique)
    foreach ($name in $names) {
        $point = (Get-VBRRestorePoint -backup $backup -name $name.name | sort-object creationtime  | select -last 1)
        $x = ($vmpoints | ? {$_.name -eq $point.name} )
        $x.Offsite = (get-date $point.CreationTime.Datetime)
        }
}
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Create backup job report for specific jobs

Post by Vitaliy S. »

Thanks for the report code sample, we will take a look at this internally.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests