How to backup EBS R12.2 application using shell script

 

How  to backup EBS R12.2 application using shell script


Create a shell script with any name for example /home/applmgr/apps_backup.sh

#!/bin/bash

date=`date +%d%m%Y`

. /app/prod/apps/fs2/EBSapps/appl/APPSPROD_prodappdb.env

echo ""

/app/prod/apps/fs2/inst/apps/PROD_prodappdb/admin/scripts/adpreclone.pl appsTier pwd=<apps_passwd> <<EOF

weblogic123

EOF

echo "---------Application Preclone end `date` --------------"

echo "" >> /home/applmgr/BACKUP_PROD_APPS/log/backup_$date.log

echo "--------------Tar backup end `date`---------------" >> /home/applmgr/BACKUP_PROD_APPS/log/backup_$date.log

cp /backup/PROD_APPS_Backup/apps_prod_$(date +%d-%m-%Y).tar.gz /remote_HDD/PROD_Backup_DND/Apps_backup/

echo "--------------backup copied to External HDD completed at `date`---------------" >> /home/applmgr/BACKUP_PROD_APPS/log/backup_$date.log

 

Once done , schedule it in crontab as per your requirement

0 0 * * * /home/applmgr/apps_backup.sh

1 comment: