RMAN Incremental(Daily)

#!/bin/ksh
. $HOME/.profile
dt1=`date +%d%b%Y-%H.%M.%S` ; export dt1;
echo “#######################################”
echo “Rman Start time $dt1”
echo “#######################################”
cd /u1/oracle/Ora/bin
./rman log /u2/backup/IncrementalBackup.$dt1.log << EOF
#set dbid 2119214362
connect target /
run {
allocate channel ch1 device type disk format ‘/u2/backup/Lev1_%s_%D_%M_%Y’;
sql ‘alter system switch logfile’;
backup as compressed backupset incremental level 1 TAG ‘Daily_Incremental’ database filesperset 4;
}
exit;
EOF

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s