RMAN 8i - Backup to disk

Use the following UNIX/RMAN script to do a level 0 backup of an Oracle database:

export ORACLE_SID=my_db
rman catalog rman/rman@catalog_db log='backup.log' <<EOF
connect target
run {
allocate channel 'd0' type disk;
backup incremental level 0
filesperset 1
format '/backup/my_db/df_%s_%t_%p.dbf'
database
include current controlfile ;
sql 'alter system archive log current'
;
backup
filesperset 1
format '/backup/my_db/al_%s_%t_%p.dbf'
archivelog all delete input ;
release channel d0;
}
exit
EOF

I suggest that the backup.log file is stored somewhere because to restore the database, the backup sets need to be placed in the same location as they were backed up - mind you, symbolic links can be used as well to do the trick :)

Edit: I will modify the script very soon to adopt channel parallelization for maximum throughput! The idea is to allocate the channels as follows:

allocate channel d0 type disk;
allocate channel d1 type disk;
backup incremental level 0
filesperset 1
format '/backup/my_db/df_%s_%t_%p.dbf'
database
....

As soon as I test this scenario myself, I will post the full script again.