backup report script

Hi ,

Let me know how to write a script that

runs a <a backup command> to check the backups of a particular client
from the last_night & today' dates
and print the out.

You really need to give more information - what should the script be written in? What OS and version are you running? What kind of backup (tar, ufsdump, netbackup, etc.), and how is it recorded (log files)?

Plus, normally, we ask that folks do their own scripts and if you run into problems, then ask specific questions in the area you are having issues with. You can always find a consultant to come in and fix up a script. Learning to do it yourself is more rewarding (although there are a bunch of folks on these forums that could just knock out a script once they had some specifics).

Hi,

Here is a script that I developed.

#!/usr/bin/ksh
# Script to check for the last backups

echo "Enter the client name"
read CLIENT_NAME

for DATE in <mm/dd/yy> <mm/dd/yy> .....
do
echo "Checking for the backup of $CLIENT_NAME for the $DATE"

mminfo -c $CLIENT_NAME | grep "$DATE"
done

Currently I am updating the dates in the script as what ever I need.
I would like to design the script in such a way that it should ask me a date that I should start and end with.

Thanks