RMAN LOG File with date
Script:
#!/bin/bash
export ORACLE_HOME=/disk1/app/oracle/product/11.2.0/dbhome_1
log_date=`date "+%Y%m%d_%H:%M"`
$ORACLE_HOME/bin/rman target / log /bkp_mount/${ORACLE_SID^^}/log_arc_${log_date}.log @/bkp_mount/scripts/arc_Bkp.rcv
rcv script:
run {
allocate channel a1 type disk;
allocate channel a2 type disk;
crosscheck archivelog all;
backup as compressed backupset archivelog all format "/bkp_mount/ARCHIVE/ORCL_arc_%T_%U";
release channel a1;
release channel a2;
}