Forum Discussion

X2's avatar
X2
Moderator
7 years ago

bpstart/bpend notify script usage with VMware type backup

Is it possible to use bpstart_notify and bpend_notify scripts with a VMware type backup job? (single VM in the policy)

From what I understand bpstart_notify runs when bpbkar starts on client. But with VMware type backup, the bpbkar process starts during the actual backup job. The need is to run something before the snapshot is taken and then run another set after the snapshot is consolidated after backp completes.

I have tried the pre and post scripts in /usr/sbin/ directory but they seem to run almost at the same time ( I generated some files pre and post and they all had same file stamps).

Any other pointers?

  • Maybe I misunderstand the question but we use bpstart_notify and bpend_notify with VMware type policy for PostgreSQL virtual machines.

    We call those scripts from  /etc/vmware-tools/backupScripts.d  directory on the guest VM. And it works.

    • X2's avatar
      X2
      Moderator

      MarianneI'm trying to setup a methodology to backup VCSA 6.5 (vCenter Server Appliance) using NetBackup. The inbuilt method of backing up VCSA is not even close to an Enterprise type backup as there are no scheduling capabilities and restore is dependent on "reinstalling VCSA" and replacing the required files.

      VCSA 6.5 uses vPostgreSQL database and we are not going to purchase the plugin from Zmanda for a single VM. So, as VCSA 6.5 supports vSphere Storage APIs - Data Protection, and PostgreSQL has WAL, I was leaning towards using some scripts to quiesce the database before backup (VMware type policy). So, the "something" that you asked about is basically the scripts need to quite down the database. I'm hoping to achieve this without having to shutdown the database.

      BTW, is there anyone using VCSA 6.5 with ESXi 6.5 and performing backup of VCSA using VMware type policy?