creating log files for a backup script on solaris

I have a simple backup script that I am running to back up drives across the network. However I need to have detailed log files for this script such as time backup started, what was backed up, if there were any errors and the time that the backup was complete. I would also like the script to email me to tell me whn its done. Does anyone know of a refernce online that I could find out how to do this or if anyone here that can help that would be great. Thanks.

why dont you post your backup script now?

i use ufsdump and update /etc/dumpdates and have the output of my script sent to my email.

for i in list_of_fses_to_backup ; do
/usr/sbin/ufsdump 0uf /dev/rmt/0n $i
done

mt rewoffl

then i just run the script in cron. since it creates output it goes to my email once the script is done running.

I dont have the script with me as I am home now for the weekend but it is a simple simple that just uses tar commands to back up files across our network...

#!/bin/csh -f -x

echo nbdrives backup

cd ~/backups/monthly
ls -plas

mt -f /dev/rmt/2cb status
mt -f /dev/rmt/2cb rew
pushd .
cd /

( tar -cvFFf /dev/rmt/2cb \
net/miami/nb1 \
#net/miami/nb2 \
#net/miami/nb3 \
#net/miami/nb4 \
#net/miami/nb5 \
#net/miami/nb6 \
#net/miami/nb7 \
#net/miami/nb8 \
>> ~/backups/monthly/contents5 ) >>& /net/tribeca/usr1/logs/errors5

mt -f /dev/rmt/2cb rewoff

ls -plas
exit