Monday, 27 November 2017

EBS R12 Application Cold Backup Script

#/backup/scripts/appsbkp_tar.sh
#sript for full physical backup of Application. This script runs on 2:30 AM every Sunday
TIMESTAMP=`date +%T-%m-%d-%Y`
LOG_FILE=/u01/oracle/db_bkp/appbackup/APPS_FULL_TAR_${TIMESTAMP}.log
BKAPPNAME="APPS2_BK_HOME_`date '+%d%m%y_%H_%M'`.tar"
echo "********************************************************">>$LOG_FILE
rm /u01/oracle/db_bkp/appbackup/*
echo "APPS HOME Complete tar creation start `date '+%d%m%y_%H%M'`">>$LOG_FILE
cd /u1/oracle/
tar -zcvf /u01/oracle/db_bkp/appbackup/APPS2_BK_HOME_`date '+%d%m%y_%H_%M'`.tar  prodappl/>>$LOG_FILE
echo "APPS2 HOME Complete tar created end `date '+%d%m%y_%H%M'`">>$LOG_FILE
echo "********************************************************">>$LOG_FILE
echo " ">>$LOG_FILE
echo " ">>$LOG_FILE

No comments:

Post a Comment