Veritas FlashSnap Point-In-Time Copy Solutions 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009

quit
!
Script to perform off-host backup
Use this script to perform off-host backup.
#!/bin/ksh
#
# script: do_backup.sh <list_of_database_volumes>
#
# Sample script for off-host backup
#
# Note: This is not a production level script, its intention is to help
# you understand the procedure and commands for implementing
# an off-host point-in-time copy solution.
# Modify the following procedure according to your environment
# and backup method.
snapvoldg=snapdbdg
# Import the snapshot volume disk group.
vxdg import $snapvoldg
# Mount the snapshot volumes (the mount points must already exist).
for i in $*
do
fsck -F vxfs /dev/vx/rdsk/$dbasedg/snap_$i
mount -F vxfs /dev/vx/dsk/$dbasedg/snap_$i /bak/$i
done
# Back up each tablespace.
# back up /bak/ts1 &
...
# back up /bak/tsN &
wait
# Unmount snapshot volumes.
Files and scripts for sample scenarios
Script to perform off-host backup
90