Quantcast
Channel: VMware Communities: Message List - vCenter™ Server
Viewing all articles
Browse latest Browse all 15787

Backing up the VCSA (vPostgres) via script

$
0
0

** UPDATE ** Last version of scripts had typo in removal of old files.

 

Hello,

For those of you that use the VCSA, backup can be a manual process.  VMware official KB:http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2034505

 

Attached is a script that will basically:

  1. Create a custom log and error file
  2. Ensure an existing process is not currently running or terminate if running for too long
  3. Remove backups older than X days
  4. Create a database dump and Gzip it
  5. Verify the file is not empty

 

If you have any improvements on this script, please post here to share with everyone.

Thanks


Viewing all articles
Browse latest Browse all 15787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>