In this article I show you how to backup your Oracle database using a bash script.
You will use 3 files for the RMAN backup.
You execute it like that to generate a level 0 backup for your SID:
./rman_backup.sh -d {SID} -l 0
For level 1 backup you should execute it like that
./rman_backup.sh -d {SID} -l 1