Exporting the list of VMs that is backed up with Veeam ?

PowerShell script exchange

Exporting the list of VMs that is backed up with Veeam ?

Veeam Logoby albertwt » Thu May 18, 2017 1:01 pm

People,

Can anyone here please assist with the Veeam PowerShell script to list all VMs that is currently backed up by Veeam and its backup location (repo), backup time to .CSV file ?

Like this one:
Code: Select all
Foreach ($Job in Get-VBRJob)
{
$job | select name
"-------------------"
$Job |select @{Name="Objectsinjob";Expression={$_.GetObjectsInJob().name}} | select -expandproperty Objectsinjob
" "
}


But it doesn't have the Veeam Backup Job name and when & where is the backup saved ?

Thanks in advance.
--
/* Veeam software enthusiast user & supporter ! */
albertwt
Expert
 
Posts: 607
Liked: 19 times
Joined: Thu Nov 05, 2009 12:24 pm
Location: Sydney, NSW

Re: Exporting the list of VMs that is backed up with Veeam ?

Veeam Logoby Andreas Neufert » Sat May 27, 2017 9:03 pm 1 person likes this post

Enterprise Manager VM tab has this information and you can export it there.
https://helpcenter.veeam.com/docs/backu ... tml?ver=95
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Exporting the list of VMs that is backed up with Veeam ?

Veeam Logoby albertwt » Sun May 28, 2017 10:53 pm

Andreas Neufert wrote:Enterprise Manager VM tab has this information and you can export it there.
https://helpcenter.veeam.com/docs/backu ... tml?ver=95


Yes, it works :-)
thanks Andy.
--
/* Veeam software enthusiast user & supporter ! */
albertwt
Expert
 
Posts: 607
Liked: 19 times
Joined: Thu Nov 05, 2009 12:24 pm
Location: Sydney, NSW

Re: Exporting the list of VMs that is backed up with Veeam ?

Veeam Logoby twesterd » Tue May 30, 2017 2:46 pm

How about a PowerShell option? After all, this is a PowerShell forum, not an EM forum. Manually getting info from EM is not the same thing. For example, right now I need to get a list of backup jobs that are contained within a specific repository, then I need to create Backup Copy jobs to maintain offsite copies (if the job isn't already created). The idea is to automate this where a service compares what is in a repository to auto-generate as necessary. Manually getting the list defeats the purpose.

So, Is there a way... in PowerShell?
twesterd
Influencer
 
Posts: 17
Liked: never
Joined: Wed May 17, 2017 7:38 pm
Full Name: Trevor W

Re: Exporting the list of VMs that is backed up with Veeam ?

Veeam Logoby twesterd » Tue May 30, 2017 3:36 pm

Also, I looked at the EM link, then I just exported the data in my environment. For us, there is a significant flaw in that report. The column for "job name" is NOT the job name, it is the folder name in the repository with the underscores removed. We had a need to move all our jobs to scale out repositories and after that change Veeam sees the backups having two locations (we worked with Veeam support on this and there is no way to merge them back).

Also, if you change the name of a job, the folder name does not change, so the "job name" in the report will reflect the original job name, not the current name because what is listed as "job name" is really folder name. Because of issues like this it is unreliable for our automation purposes.
twesterd
Influencer
 
Posts: 17
Liked: never
Joined: Wed May 17, 2017 7:38 pm
Full Name: Trevor W

Re: Exporting the list of VMs that is backed up with Veeam ?

Veeam Logoby vmniels » Tue May 30, 2017 3:44 pm

There are a few posts on the forums about this; have a look at powershell-f26/list-vm-s-which-are-backed-up-by-job-t39525.html#p221539
VCP-DCV
Veeam Certified Engineer
http://foonet.be
vmniels
Veeam Software
 
Posts: 1505
Liked: 325 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests