Ask the Community
Groups
What is the best way to backup our vCenter? - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="summary"><strong>SUMMARY</strong></h2> <p>We'll explain the best way to backup our vCenter versions 5.5, 6.0, 6.5, or 6.7.</p> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p>Question: What is the best way to backup our vCenter?<br><br>Following is a list of problems that may occur when the vCenter is being backed up virtually: </p> <ul><li>A message in vSphere that it has lost connectivity.</li> <li>The post-backup process is encountering a storage error.</li> <li>If using UB Virtual Appliance, the UB may experience a loss of communication with the Hypervisor/vCenter.</li> <li>If using UB Virtual Appliance, the UB may hang.</li> <li>The Guest VMs that was being backed up, may encounter a locked snapshot that will restrict access to the virtual machine</li> <li>You cannot restore vCenter backups even though the incremental was successful.</li> </ul><h2 data-id="resolution"><strong>RESOLUTION</strong></h2> <p>Always add the ESXi hosts and the vCenter to your Unitrends appliance. This helps streamline communications and helps later on when an unexpected vCenter error occurs and you need to perform recovery operations. When performing a virtual backup of vCenter, perform it as a <strong>Full backup only</strong>. For specifics based on vCenter release versions and best practice, see your options below:</p> <p> </p> <p><strong>For All vCenter Versions</strong><br>The safest method is to use vCenter's best practice for backing up by shutting down the postgres database, and running a process backups up the vCenter profiles and places it in a location of your choice. This is especially important for VMs older then 6.0.<br><br><strong>vCenter 5.5 and older</strong><br>It is recommended that you perform VMware's recommend best practice of <a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fkb.vmware.com%2Fs%2Farticle%2F2034505" rel="noopener nofollow">stopping the database first</a> and then performing the manual backup. Full instructions are found in <a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fkb.vmware.com%2Fs%2Farticle%2F2034505" rel="noopener nofollow">VMware KB 2034505</a>. You can perform the virtual full backup while the database is shut down or the vCenter is powered off.</p> <p>Virtual Backups are not supported. You must use VMware's database export best practices and provide that to Unitrends for collection in another VM or as a Client Agent FLR. Undesired results can occur if you backup these older vCenter VMs when the database is still running.</p> <p><br><strong>vCenter 6.0</strong><br>You can perform a virtual backup of the vCenter by running an OnDemand Full only after confirming that there are no backups occuring, and no snapshots or vMotion in progress. You should also perform the work indicated in VMware's document "<a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fkb.vmware.com%2Fs%2Farticle%2F2091961" rel="noopener nofollow">Back up and restore vCenter Server Appliance/vCenter Server 6.0 vPostgres database</a>".</p> <p>Warning: <strong>VMware only supports the virtual protection of vCenter 6.0+ using FULL BACKUPS.</strong> Incremental forever backup, though generally recommended for all common VMs, are not supported for vCenter itself. This is a VMware limitation, not a Unitrends limitation. Further, such backups should only be done <strong>MANUALLY</strong> as it is critical that other VMware operations managed by vCenter including other backups, snapshots, consolidations, migrations, and more not be happening during this operation. If you have been performing incremental or differential backups of a vCenter virtual appliance recovery may result in corruption of the vCenter database. See <a rel="nofollow" href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fkb.vmware.com%2Fs%2Farticle%2F2091961">https://kb.vmware.com/s/article/2091961</a> for more information.</p> <p><br><strong>vCenter 6.5 and Above</strong><br>You can choose any of the options above, including their new backup utility inside vCenter through the <a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fdocs.vmware.com%2Fen%2FVMware-vSphere%2F6.5%2Fcom.vmware.vsphere.install.doc%2FGUID-8C9D5260-291C-44EB-A79C-BFFF506F2216.html" rel="noopener nofollow">vCenter Server Appliance Management Interface</a>. We recommend more than one for maximum protection.</p> <p> </p> <p> </p> <h2 data-id="cause"><strong>CAUSE</strong></h2> <p>vCenter uses a high performance database called <a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fwww.postgresql.org%2Fabout%2F" rel="noopener nofollow">PostgreSQL</a> which stores most of the database and changes in RAM. It is not virtualization aware and does not handle the snapshot request like a Windows computer can. When VMware performs the snapshot stun, data in RAM is at risk for loss affecting current snapshots or vmotion processes.</p> </article> </main>