Question

Intellisnap backup of an AWS EC2 instance that can perform a Pre and Post job script on the EC2 instance that is being backed up

  • 5 July 2023
  • 2 replies
  • 68 views

Badge +3

We would like to run a pre-backup script that freezes our IRIS database on a Red Hat EC2 instance, after the freeze is successful we would want to run an Intellisnap backup of that Red Hat EC2 instance and then once the backup completes, unfreeze the IRIS database. What is the best way to get Commvault  to orchestrate this process ? Thanks


2 replies

Userlevel 7
Badge +23

The best would be to use workflows to script it. There is no elegant way where EC2 automatically communicates with the VM to run scripts on a snapshot event like VMware unfortunately (at least that I know of).

Two options

  1. Use SSH to remotely execute the quiesce / freeze script
  2. Execute the backup
  3. After backup use SSH to run thaw script

Or if you dont want to use SSH, you could install FS agent and allow commvault to execute the script locally using the “ 84564.pngExecuteScript “ code block.

 

Another option is to have the backup execute from the linux server machine itself - use the “save as script” function for the subclient and copy that to the VM. Run the freeze, execute the backup script, run the thaw etc - put that on a cron job and away you go.

 

Badge +3

Probably most Commvault customers are fine with installing the FS agent. I wonder why Commvault doesn’t build a process with the requirement that the FS agent needs to be installed to have a process like this work. Then it could be used on EC2 instances or a VM within VMware. Under the Pre/Post Process tab of the virtual server subclient, there could be a check box that says something like “Run Pre/Post processes on the guest(FS agent is required to be installed on the guest for this to work)”. After you check it, it would give you a PreSnap Process to run on the guest and a PostSnap Process to run on the guest. In our use case, Post Snap is a better option than PostBackup because we want to unfreeze the IRIS database as soon as possible.

Reply