Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ for Sybase Administrator's Guide
  3. Configuring NetBackup for Sybase
  4. About the backup, restore, and load scripts for NetBackup for Sybase on UNIX
  5. Example of a sybase_mydb_restore script
Veritas NetBackup™ for Sybase Administrator's Guide

Example of a sybase_mydb_restore script

The following code example shows the sybase_mydb_restore script:

#***************************************************************************
# Replace /usr/sybase12 below with your actual Sybase home directory 
#***************************************************************************
SYBASE=/usr/sybase12
  
#***************************************************************************
# Replace SYBASE12 below with your actual name of the SQL Server
#***************************************************************************
SYBSERVER=SYBASE12
  
if [ ! -d "${SYBASE}"/ASE-12_0/ ]
then
#************** Sybase 11.9.2 or earlier **************
ASE_QUAL=
OCS_QUAL=
else
#************** Sybase 12.0 or later **************
SYBASE_ASE=ASE-12_0; export SYBASE_ASE
SYBASE_OCS=OCS-12_0; export SYBASE_OCS
ASE_QUAL=/$SYBASE_ASE
OCS_QUAL=/$SYBASE_OCS
fi
  
#***************************************************************************
# Replace /usr/openv/netbackup/ext/db_ext/sybase/scripts/sybase_mydb_load
# below with your actual SQL script path which contains corresponding
# LOAD commands
#***************************************************************************
LOADDB=/usr/openv/netbackup/ext/db_ext/sybase/scripts/sybase_mydb_load
  
echo "Started 'date'"
  
SYBASE=$SYBASE; export SYBASE
  
RETURN_STATUS=0
  
# NetBackup has started a restore
  
#***************************************************************************
# Replace "manager" with your Sybase server Administrator's Password
#***************************************************************************
echo "$SYBASE$OCS_QUAL/bin/isql -Usa -Pmanager -I$SYBASE/interfaces -S$SYBSERVER < $LOADDB"
$SYBASE$OCS_QUAL/bin/isql -Usa -Pmanager -I$SYBASE/interfaces -S$SYBSERVER < $LOADDB
  
RETURN_STATUS=$?
  
echo "Finished 'date'"
  
echo "exit $RETURN_STATUS"
echo ""
  
exit $RETURN_STATUS

Feedback

Was this page helpful?
Previous

Modifying the restore script for NetBackup for Sybase on UNIX

Next

About the backup, restore, and load scripts for NetBackup for Sybase on Windows

Feedback

Was this page helpful?