I was trying to pass the backup location to the rman script dynamically as below. But it fails with syntax errors. Is there a way to pass the "/backup/folder/folder/" to the rman script? If I just pass string without "/" it works but with "/" it fails.
rman @${rmanbasepath}rman_replication_from_backups.rcv USING ${dbname} ${backupdir}
backup.rcv
CONNECT AUXILIARY /
run {
allocate auxiliary channel a1 device type disk;
allocate auxiliary channel a2 device type disk;
allocate auxiliary channel a3 device type disk;
allocate auxiliary channel a4 device type disk;
DUPLICATE TARGET DATABASE TO &1
BACKUP LOCATION '&2'
NOFILENAMECHECK;
}
EXIT;