On each SpectroSERVER, the <SPECROOT>/custom/CsScript/post_olb_script can be configured to back up the DDM database after a successful SpectroSERVER database save has completed. This document provides information on wow to configure the CA Spectrum post_olb_script to perform a DDM back-up at a specific time.
We will use the following example configuration:
The CA Spectrum Online Backup (OLB) is configured to run every 8 hours. The post_olb_script is configured to back-up the DDM database on Sundays. This configuration causes the DDM database to backup three times on Sunday. How can the post_olb_script be modified to back-up the DDM database only once on Sunday?
Using the above example, suppose the OLB runs every 8 hours at 2:00 AM, 10:00 AM and 6:00 PM daily. The $SPECROOT/custom/CsScript/post_olb_script can be modified as follows to only run the DDM backup at 2:00 AM on Sunday.
if [ "$day_of_week -eq $target_day" ] && [ "$hour_of_day -eq $target_hour" ]
In the above example, the target_day is set to “0” (Sunday) and the target_hour is set to 2. The script checks the current day_of_week and hour_of_day. Then, compares the current day of the week with the target day and the current hour of the day with the target hour. If both match, a backup of the DDM database is performed. If both do not match, a DDM database backup is not performed.
The target_day and target_hour can be modified to suite your individual needs.