Create backup job report for specific jobs

Management reporting and documentation

Create backup job report for specific jobs

Veeam Logoby bjdboyer » Mon Nov 16, 2015 9:00 pm

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
bjdboyer
Influencer
 
Posts: 18
Liked: 1 time
Joined: Mon Nov 16, 2015 5:52 pm
Full Name: Bill Boyer

Re: Create backup job report for specific jobs

Veeam Logoby Vitaliy S. » Mon Nov 16, 2015 9:12 pm

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!
Vitaliy S.
Veeam Software
 
Posts: 19564
Liked: 1104 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Create backup job report for specific jobs

Veeam Logoby bjdboyer » Thu Dec 31, 2015 4:46 pm 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)
        }
}
bjdboyer
Influencer
 
Posts: 18
Liked: 1 time
Joined: Mon Nov 16, 2015 5:52 pm
Full Name: Bill Boyer

Re: Create backup job report for specific jobs

Veeam Logoby Vitaliy S. » Tue Jan 05, 2016 5:54 pm

Thanks for the report code sample, we will take a look at this internally.
Vitaliy S.
Veeam Software
 
Posts: 19564
Liked: 1104 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov


Return to Reporting



Who is online

Users browsing this forum: No registered users and 3 guests