Log index of "tar | compress | dd" from cron

From: Marco Greene (marco_greene@hotmail.com)
Date: Thu May 08 2003 - 12:37:18 EDT


Hello Admins, I have a backup script that is using "tar | compress | dd".I
do compress on the top of tar since the data I have to backup is bigger
that the tape size.It runs from cron every night. I want to have an index
of what's going on the tapeand I don't know how. Crontab entry:0 1 * * *
/usr/local/backup.com > /var/logs/backup.log 2>&1 The backup script:# cat
/usr/local/backup.comcd /tar cvf - ./opt ./var ... and so on \| compress
\| dd of=/dev/rmt/0m bs=512k > /var/logs/index.log 2>&1 All I get in the
log file is the output of the dd command:0+3 records in0+3 records out
However, if I run the above command manually from a terminalI get all the
verbose of tar on my screen.How can I put it in a file when running from
cron as a script? TIA,Marco

------------------------------------------------------------------------

Help STOP SPAM with the new MSN 8 and get 2 months FREE*
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:22 EDT