Step 4: Pre/Post Scripts
Pre/Post Backup commands allow you to configure system-level actions that are to be executed before and after a backup process. Typically, you would run the pre-script before the backup job to move the application into Backup Mode by freezing the system for a short period of time during which the snapshot will be taken. And, the post-script will be used to release the frozen or locked system after the snapshot is taken to resume the full-scale normal operations.
- In BDRSuite Backup for AWS, to execute pre/post backup scripts, it is mandatory to install BDRSuite Integration Service in the required EC2 instances.
- To know more about downloading and installing VIS, go to the VIS Management section.
- After installing the VIS in the required EC2 instances and after adding the DNS/IP Address details of those instances in the BDRSuite Backup Server, you can save the pre/post scripts in the target instances.
- Create the scripts/batch files for the before and after operations and save them in this path – VIS_INSTALLATION_LOCATION/scripts.
- Save the backup scripts in the following format:
Pre Backup Script file: before_BackupJobName.extension
Example : before_TestBackup.bat
Post-Backup Script file: after_BackupJobName.extension
Example : after_TestBackup.sh
- Add the time-out limit for the scripts in the Pre/Post Scripts Timeout in the secs text box. If the time limit is exceeded and the script is not executed, the backup will fail.
- Click on Create Backup and a new window with backup configuration settings will appear.