cat backup.rcv connect target sys/password@testyjdb; run{ allocate channel c1 type disk; allocate channel c2 type disk; backup fileaperset 2 format ‘/soft/backup/arch_backup_%d_%s_%p' archivelog all delete input; release channel c1; release channel c2; }
backup_archive.sh rman catalog rman/rman cmdfile = backup.rcv 0 23 * * 0 backup_archive.sh #表示星期天23点对数据库备份
Crontab文件的每一行由六个域(minutes,hours,day of month,month,day of week,command)组成,域之间用空格或Tab分隔开来