HP Data Protector Software Cell Manager Failover Process (standby Cell Manager)

11
site(A):dp_database1-post.bat
"d:\Program Files\Omniback\bin\omnir" -omnidb site(A).yourdomain":/
"[Database]: site(A).yourdomain" -session 2007/03/14-2 -tree / -into
"D:\IDBrestore" -target site(B).yourdomain
Note
This is an automatically generated script by the site(A):database2-post.bat
script. You must not create or edit this script.
site(A):dp_database2-post.bat
echo "d:\Program Files\Omniback\bin\omnir" -omnidb site(A).yourdomain:/
"[Database]: site(A).yourdomain " -session %SESSIONID% -tree / -into
"D:\IDBrestore" -target site(B).yourdomain > "d:\Program
Files\Omniback\bin\dp_database1-post.bat"
Note
This script pipes its output into the site(A):dp_database1-post.bat script
upon finishing Backup Job2.
All scripts must reside in the d:\Program Files\Omniback\bin directory of their relevant systems.
Replication job content (HP-UX 11.23)
The following section shows the content of the pre- and post-execution scripts and how they are being
used in the backup datalists.
site(A):dp_database1-pre.sh
#!/bin/ksh
# This is a sample dp_database1-pre.sh script
/opt/omni/bin/omnistat
/opt/omni/bin/omnib -datalist dp_database2
Note
omnistat generates a list of eventually running backup jobs in the Data
Protector GUI. You must not run IDB backups during currently running or
scheduled backup sessions. omnib –datalist calls the backup datalist
specified.
site(B):dp_database2-pre.sh
#!/bin/ksh
# This is a sample dp_database2-pre.sh script
if [ -d /IDBrestore ]
then
echo Directory exists && echo Will empty directory && rm -r /IDBrestore
&& mkdir /IDBrestore
else
echo Directory does not exist. Nothing to remove.