ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

vSphere 6 – How To Backup vCenter 6 vPostgres Database On Windows

By Vladan SEGET | Last Updated: March 26, 2015

Shares

VMware vSphere 6 release brought more robust vPostgres Database which gets installed by default when installing on Windows Server. For users willing to install the Windows version of vCenter Server 6 VMware has prepared a script which can be used to backup/restore the vPostgres Database. So in this post I'll walk you through: vSphere 6 – How To Backup vCenter 6 vPostgress Database ( On Windows)

So unless you specify external DB during the installation process,the installer will install this vPostgres database by default. The ESXi host and virtual machine limits have been increased in vCenter Server 6.0 with the vPostgres database to 20 hosts and 200 virtual machines. Previous release had this limit fixed to 5 hosts and 50 virtual machines supported with the embedded Microsoft SQL database. With 20 hosts you can do quite a lot… So in today's post I'll walk you through the process.

In one of my earlier posts I have walked you through (with a video) an installation (and some gotchas) of vCenter Server 6 on Windows server with an external SQL server Database, which can obviously can be backed up or protected with other backup tools, but in this post we will focus on smaller to middle size installations.

vSphere 6 – How To Backup vCenter 6 vPostgres Database ( On Windows)

Step 1. Connect to your vCenter server with admin rights and download the script from this VMware KB (at the bottom, file called windows_backup_restore.zip ) > put both file to the root of the c: drive to keep things simple

vSphere 6 How to backup vCenter 6 windows vPostgress Database on windows

Step 2. Go to the %VMWARE_CFG_DIR%vmware-vpx directory and open a file called vcdb.properties > Open the file in notepad and copy the password into clipboard.

Backing Up and Restoring the Embedded vCenter Server Database

Step 3. Open command prompt and navigate to %vmware_cis_home%python and run the backup_win.py script and use the password you have copied in previous step.

The command:

python.exe c:backup_win.py -p “Nw}IO4Wgm)1P$!C” -f c:backup_of_my_vPosgressDB.bak

Result:

vSphere 6 - How to backup vCenter 6 vPostgress Database on Windows

Restore Operations

If you need to restore vCenter vPostgres Database then similar steps has to be taken, but in addition before the restore starts, you must stop some VMware services:

Step 0:

  • Stop the vCenter Server and VMware Content Library services.
  • From the Windows Start menu, navigate to Start > Administrative Tools > Services.
  • Right-click VMware VirtualCenter Server and select Stop.
  • Right-click VMware Content Library Service and select Stop

Step 1. Go to the %VMWARE_CFG_DIR%vmware-vpx directory and open a file called vcdb.properties > Open the file in notepad and copy the password into clipboard.

Step 2. Open command prompt and navigate to %vmware_cis_home%python and run the restore_win.py script and use the password you have copied in previous step.

The command:

python.exe c:restore_win.py -p “Nw}IO4Wgm)1P$!C” -f c:backup_of_my_vPosgressDB.bak

Step 3. Start those 2 VMware services that you have stopped in step 0

Thoughts:

Even if the vast majority of backup products out there isn't supported on vSphere 6, it's just of question of the time when this compatibility will be announced. However a granular backup/restore for vCenter DB is good backup strategy as well.

As concerning the automating and different specifications on where to send those backups you can obviously you specify different destination and (or) create a daily task which would automate the backups on Windows server, but I believe that you're mastering those tasks by yourself… -:).

This VMware KB also provides backup steps for VCSA based installations.

Source: VMware KB 2091961

Shares
5/5 - (1 vote)

| Filed Under: How To, Server Virtualization Tagged With: vSphere 6 - How To Backup vCenter 6 vPostgress Database ( On Windows)

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Parveen Garg says

    March 27, 2015 at 5:28 am

    Many Many Thanks vLadan……..

  2. Alberto says

    April 16, 2015 at 9:07 am

    Thanks for your post.

    I’ll link it from my site if you dont mind.

  3. Bart says

    March 30, 2017 at 3:18 pm

    I’ve had to add a backslash between those environment variables %VMWARE_CFG_DIR% and %vmware_cis_home%, and their respective subdirectory names.

  4. james says

    January 5, 2018 at 12:07 am

    I wanted to implement a backup schedule for vPostgres only. We have Commvault so this will backup the actual VM every evening. However, I do not think this is adequate enough for when we move to vPostgres from SQL when we upgrade from vSphere 5.5 to 6.5U1. SQL is currently using SQL transaction logs with an interval of 15 minutes intervals.

    I am interested in your opinion about whether we need more frequent backups. In my opinion it is necessary. Some of my team are telling me it is unnecessary. I know it depends on how risk savy you are. However, vCenter is the database. If you lose the DB, you lose everything

  5. Mike says

    April 10, 2019 at 10:52 pm

    Do you have to stop any services?

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in