Veeam 7 and vCD Catalog Templates

VMware specific discussions

Veeam 7 and vCD Catalog Templates

Veeam Logoby jgreenback » Thu Sep 19, 2013 10:52 pm

Is anyone using Veeam7 with a private vCloud Director environment?
How do you handle backing up the Organization Catalog templates with Veeam? Veeam doesn't have a best practice for this case.

Thanks.
jgreenback
Enthusiast
 
Posts: 31
Liked: 11 times
Joined: Thu Sep 19, 2013 9:26 pm
Full Name: Jason Greenback

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby Vitaliy S. » Fri Sep 20, 2013 10:39 am

Hi Jason,

Currently there is no out-of-the-box functionality to backup catalog templates, however these features are planned for future releases. As a workaround for now, you may want to backup VM templates directly from the vSphere environment.

Thanks!
Vitaliy S.
Veeam Software
 
Posts: 19770
Liked: 1120 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby jgreenback » Mon Sep 23, 2013 3:56 pm

Thanks. Can I assume this is on the roadmap for Veeam?
jgreenback
Enthusiast
 
Posts: 31
Liked: 11 times
Joined: Thu Sep 19, 2013 9:26 pm
Full Name: Jason Greenback

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby Vitaliy S. » Mon Sep 23, 2013 3:58 pm

Yes.
Vitaliy S.
Veeam Software
 
Posts: 19770
Liked: 1120 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

[MERGED] Backup of vCloud Director Catalog

Veeam Logoby the-d » Mon Dec 09, 2013 10:37 am

Hi,

will it be possible to backup ( & restore ) vCD catalogs or vApp Templates in one of the next releases?
This would be very helpfull, i don´t need the original vApp in the Organization or in a Backup.

Thanks&regards
Axel
the-d
Lurker
 
Posts: 1
Liked: never
Joined: Fri Nov 01, 2013 2:41 pm
Full Name: Axel D.

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby Vitaliy S. » Mon Dec 09, 2013 11:09 am

Hi Axel, yes, we are looking into adding this functionality. Thanks!
Vitaliy S.
Veeam Software
 
Posts: 19770
Liked: 1120 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby jgreenback » Wed Jan 22, 2014 8:09 pm

Hi Axel, yes, we are looking into adding this functionality. Thanks!


@Vitaliy S.
How soon can we expect to see the this functionality? Is there a timeline?
We are running in a Test/Dev environment and the catalogs are where all the time is invested. Running vApps only live for a few hours.

Thx,
jgreenback
jgreenback
Enthusiast
 
Posts: 31
Liked: 11 times
Joined: Thu Sep 19, 2013 9:26 pm
Full Name: Jason Greenback

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby foggy » Thu Jan 23, 2014 1:55 pm

jgreenback wrote:How soon can we expect to see the this functionality? Is there a timeline?

Jason, unfortunately, we do not publish our roadmap.
foggy
Veeam Software
 
Posts: 15086
Liked: 1110 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby Dan Feeley » Mon Feb 17, 2014 5:03 pm

Greetings,

I am also posting to make sure this feature is not lost. vCloud backup and restoration of catalogs is vital. it actually has a bigger impact than one might think. Without catalog backup/restoration it indirectly breaks other features that we also rely on greatly, such as linked clones.

First and most obvious, in the event of a total disaster it is not possible to restore your entire vCloud environment back to its original condition. There is no way to do it. It is impossible. Please someone prove me wrong.

Backing up the vApp catalogs through ESX instead of vCloud is not a realistic solution either. While you get a copy of the VM you can't really do much with them to restore their original state within vCloud, other than importing again as a net-new vApp. This is not a backup. This is a desperate last resort.

We have 900+ systems within our catalogs. We can have an easy 20+ vApps built from a single original vApp, with all of these as linked clones. If the catalog cannot be restored each of these vApps will be restored as unlinked clones. Currently we have 50+TB of linked clones using only 6+TB of actual space. Without the catalog you cannot restore the linked clone in its linked format. We do not have the capacity to restore 50TB of vApps.

My case on this issue is #00505677.
Dan Feeley
Novice
 
Posts: 5
Liked: never
Joined: Tue Sep 17, 2013 1:29 am
Full Name: Dan Feeley

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby haslund » Mon Sep 15, 2014 9:06 pm

This is also something I am hoping to see added in v8.
We have many service provider customers who will only use Veeam if they have this functionality.

Please consider adding this in v8!
Rasmus Haslund
Principal Technologist, Global Education Services @ Veeam Software
Veeam Certified Architect #1 | Veeam Certified Trainer #4 [v7,v8,v9] | Veeam Certified Trainer Mentor #1
Twitter: @haslund
Blog: www.perfectcloud.org
haslund
Veeam Software
 
Posts: 275
Liked: 50 times
Joined: Thu Feb 16, 2012 7:35 am
Location: Denmark
Full Name: Rasmus Haslund

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby Gostev » Mon Sep 15, 2014 11:00 pm

Hey, Rasmus. It's way too late to consider anything at all for v8 at this time unfortunately, because we are in the final testing cycle already. The feature is not forgotten, but there has not been enough requests to justify adding it into v8. Thanks for your feedback though!
Gostev
Veeam Software
 
Posts: 21505
Liked: 2380 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby haslund » Tue Sep 16, 2014 8:09 pm

Fair enough, I hope it will make it into perhaps either an update or v9 :)
Rasmus Haslund
Principal Technologist, Global Education Services @ Veeam Software
Veeam Certified Architect #1 | Veeam Certified Trainer #4 [v7,v8,v9] | Veeam Certified Trainer Mentor #1
Twitter: @haslund
Blog: www.perfectcloud.org
haslund
Veeam Software
 
Posts: 275
Liked: 50 times
Joined: Thu Feb 16, 2012 7:35 am
Location: Denmark
Full Name: Rasmus Haslund

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby jgreenback » Mon Sep 22, 2014 6:12 pm 2 people like this post

We've been waiting for this feature since V7 was announced. Looks like it won't make it to V8 either. That's a shame. I hope more vCD/Veeam users come forward and ask for this feature as it's a major need, as I see it.
Until then, i hope this script i'm posting helps someone out there. If you have any questions or improvements on the script, please post them here.
Thanks.

This script establishes a remote PowerShell connection to your VeeamBR Server and GETs all Orgs, Catalogs, Templates, and then converts them to VM folder locations. They are then added/deleted on pre-existing backup jobs in Veeam BRS.
*PLEASE READ THROUGH THE SCRIPT BEFORE RUNNING IT*

Pre-Reqs
*Backup jobs need to be defined before running this script. Empty jobs that the script populates and maintains with VM folder locations.
*You need PowerShell v3 or higher on the machine that runs the PS script.
*Veeam BRS needs PowerShell v3 or higher PLUS PowerCLI 5.5 installed.

Code: Select all
####################################################################
#  Compare current vCD Org Catalog Templates (converted to vSphere #
#  Folders) to current Veeam backup job vSphere folder objects     #
#  then add new catalog templates and remove old ones from BACKUP  #
####################################################################

#Connect to VeeamBRS and Add Snapins

###################################################################
$Session = New-PSSession -Computername pa-veeam-brs
Enter-PSSession $Session

Invoke-Command -Session $Session -ScriptBlock {
   Add-PsSnapin -Name VeeamPSSnapIn -ErrorAction SilentlyContinue
   Add-PsSnapin -Name VMware.VimAutomation.Core -ErrorAction SilentlyContinue
   Add-PsSnapin -Name VMware.VimAutomation.Cloud -ErrorAction SilentlyContinue
}

###################################################################

#Connect to vSphere and vCloud
#Write-Host "Connecing to vSphere"
#Connect-VIServer -Server "vcenter.lab.local"

Write-Host "Connecing to vCloud"
Connect-CIServer -Server "vcdcell.lab.local"

###################################################################

#Gloabl Variables and arrays
#
$vCenterServer = Get-VBRServer | Where {$_.Type -eq “VC”}


###################################################################

#vCloud Director - Get all vApp Tempaltes in all catalogs per $Org
$Orgs = Get-Org
#

foreach ($Org in $Orgs)
    {
        Write-Host "Processing $Org........."
        $VeeamBackupJob = Get-VBRJob -Name "Backup Job - $Org - DR4100 - TEMPLATES"
      if ($VeeamBackupJob -eq $NULL)
      {
         Write-Host -WarningAction Continue "No Backup Backup Job exists for $Org.   Please create one if backups are required"
          #CREATE JOB or continue
         continue
      }
                                                       ########### Filter out ARCHIVE and TEST catalogs   ############
      $AllOrgTemplates = Get-Org $Org | Get-Catalog | ? { $_.Name -notlike "Test*" -and $_.Name -notlike "*Staging" -and $_.Name -notlike "Archive" } | Get-CIVAppTemplate
      if ($AllOrgTemplates -eq $NULL)
      {
         Write-Host -WarningAction Continue "$Org has no Templates to backup."
          #CREATE JOB or continue
         continue
      }

        $vCDTemplatesList = @()


        foreach ($Template in $AllOrgTemplates)
        {
            $TemplateFullName = $Template.Name + " (" + $Template.Id.Substring(24) + ")"
            $vCDTemplatesList += $TemplateFullName
        }

    ###################################################################


    #####################################################################################
    #  Issues with the below portion of the script.  If a template is renamed it will not be able
    #  to remove the old entry of that template from the defined backup job.
    #####################################################################################

        #Veeam - Get all objects in  - Template Backup job
        $VeeamBackupVMFoldersInfo = $VeeamBackupJob.GetObjectsInJob() | ? {$_.Role -eq "EInclude"}
      $VeeamBackupVMFolderNameList = @()
      if ($VeeamBackupVMFoldersInfo -eq $NULL)
      {
         Write-Host -WarningAction Continue "$VeeamBackupJob has no VMFolders defined."         
      }
      else
      {
         foreach ($VMFolderPath in $VeeamBackupVMFoldersInfo)
         {
            if ($VMFolderName = $VMFolderPath.Location.Split("\")[5] -eq $NULL)
               {
                  $VMFolderName = $VMFolderPath.Location.Split("\")[1]
                   
               }
               else
               {
                  $VMFolderName = $VMFolderPath.Location.Split("\")[5]
               }
               $VeeamBackupVMFolderNameList += $VMFolderName
         }
      }
        ###################################################################

        #Compare the 2 arrays and add New vCD templates that are not present in Veeam BU Job


        $VeeamBackupVMFolderListDifferences = Compare-Object $vCDTemplatesList $VeeamBackupVMFolderNameList
        $VeeamBackupVMFolderToAdd = @()
        $VeeamBackupVMFolderToRemove = @()

        if($VeeamBackupVMFolderListDifferences -eq $NULL)
            {
                Write-Host -WarningAction Continue "Nothing New Here. No need to continue.  Processing next Org."
                continue
            }
       
        foreach ($DifferentVMFolder in $VeeamBackupVMFolderListDifferences)
            {
           
                if($DifferentVMFolder.SideIndicator -eq "=>")
                    {
                        $VeeamBackupVMFolderToRemove += $DifferentVMFolder.InputObject
                        Write-Host "$DifferentVMFolder needs to be DELETED from job"
                    }
                else
                    {
               
                        $VeeamBackupVMFolderToAdd += $DifferentVMFolder.InputObject
                        Write-Host "$DifferentVMFolder needs to be ADDED to job"
                    }
            }

        ###################################################################

        #Load vCenterServer/FoldersandVMs view to find Template folder and add it to the Template backup job
        $LoadvCenterFoldersAndVMs = ((New-Object -typename Veeam.Backup.Core.InfrastructureTree.HostsAndClustersLoader).LoadHierarchy($vCenterServer.Info)).FoldersAndVms()

        #Add New vCDTemplates (VMFolders) to Veeam Backup Job
        $AddvCenterVMFoldersToVeeamBackupList = @()


        foreach ($vCenterVMFolder in $VeeamBackupVMFolderToAdd)
        {
            $VMFolder = Find-VBRViEntity -Server $vCenterServer -VMsAndTemplates -Name $vCenterVMFolder
         if($VMFolder -eq $NULL)
            {
             Write-Host "$VMFolder is NULL... continuing"
             continue
         }
            $AddvCenterVMFoldersToVeeamBackupList += $LoadvCenterFoldersAndVMs.GetChild($VMFolder.Reference, "Folder", $true)
        }

        if($AddvCenterVMFoldersToVeeamBackupList -ne $NULL)
        {
           Add-VBRJobObject -Job $VeeamBackupJob -Server $vCenterServer -Entities $AddvCenterVMFoldersToVeeamBackupList
        }

        #Delete VMFolders From Veeam Backup Job       
        foreach ($VeeamVMFolder in $VeeamBackupVMFolderToRemove)
        {
            $VBRVMFolder = Get-VBRJobObject -Job $VeeamBackupJob -Name $VeeamVMFolder
            $VBRVMFolder | Remove-VBRJobObject
            $VBRVMFolder.Delete()
        }

    }
###################################################################

#Exit and delete PS Session
Exit
Get-PSSession | Remove-PSSession

###################################################################
jgreenback
Enthusiast
 
Posts: 31
Liked: 11 times
Joined: Thu Sep 19, 2013 9:26 pm
Full Name: Jason Greenback

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby jgreenback » Fri Jan 22, 2016 1:53 am

Question: Does anyone know if vCloud Director Catalog backup functionality made it into Veeam V9? We've not upgraded yet and I did not see it mentioned in the release notes.
jgreenback
Enthusiast
 
Posts: 31
Liked: 11 times
Joined: Thu Sep 19, 2013 9:26 pm
Full Name: Jason Greenback

Re: Veeam 7 and vCD Catalog Templates

Veeam Logoby Vitaliy S. » Fri Jan 22, 2016 12:32 pm

Hi Jason, this feature is not part of v9 release.
Vitaliy S.
Veeam Software
 
Posts: 19770
Liked: 1120 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Next

Return to VMware vSphere



Who is online

Users browsing this forum: Bing [Bot] and 17 guests