Cool. If my memory serves me right, the %U is manditory. So you'll end up with an unpredictable file name.

Some kind of hand-off between the tape backup routine and the disk backup script will need to be worked out. You don't want to delete the old backup unless your sure it's on tape. We have the sys admin's write a file when they're done. I check for the file before proceeding with the disk backup (which includes removing the old backup pieces first).

#! /bin/bash
if [ -f /rman/tape_done ]; then
rm /rman/*
else
echo "No tape_done file present, backup terminated"|mailx -s "Backup Error - Missing /rman/tape_done File" [email protected],[email protected]
exit
fi
... proceed with backup script here...