***THESE ARE NOT OFFICIALLY SUPPORTED SCRIPTS FROM VMWARE....BEWARE***
Ok....after trying many different ways to get the procedure to work the way I want, the roadblocks that VMware put up were too big. I wanted the automated process to change as little as possible on the VCSA (obvious reasons).
So the solution was to have the copy functionality be executed by the VCSA (not the way I want it but to get around the road blocks). So basically on the VCSA, the script creates the backup, zips it, verify the size (could not find any Postgres command that actually runs a verification process), and then copies the files to a repository.
Prerequisites:
- Setup SSH authentication keys (http://www.cyberciti.biz/faq/how-to-set-up-ssh-keys-on-linux-unix/)
- You might have to enable the local root account on the destination server to copy the SSH id over (and then disable root account)
- Debian
- “sudo passwd root” = enable account
- “sudo passwd –l root” = disable account
- Debian
- You might have to enable the local root account on the destination server to copy the SSH id over (and then disable root account)
- Copy the script into /etc/cron.daily (bash_backup_vcdb on the VCSA & bash_transfer_backups on repository)
- Rename to bash_backup_vcdb (remove the “.sh” at the end of the file)
- Make executable (chmod +x %filename%)
Hopefully, VMware can put some sort of automated process in the next release of the VCSA. It has been around for long enough.
Thanks
B