RMAN – backup archivelog

Is important to make a backup of archivelogs each 30 min –  for example. When we are working in ASM diskgroups and the backup need to be done outside of the storage, the best option is to run the script below to avoid any issue with loss of data. I like to run the archivelog backup in a different script to avoid to create pieces with the datafiles and other files.

The files are below: The first is bash script with variables, commands like rman and second has the instructions to rman execute the backup of the archivelogs.