backup script

Marianne Taylor mataylor
Mon May 17 11:57:26 PDT 2004


On December 26, 2003 19:33, Joel Hammer wrote:
> I would insert some something like this to ensure the command worked:
>
> /bin/tar -cvpzf $BACK_DIR/mail-$DATE.tar.gz $MAILDIR
> [ $? -eq 0 ] && echo "Backup Worked " `date` | mail -s Backup YourAddress
> ||   echo "Backup Failed " `date` | mail -s Backup YourAddress
>
> BTW, I haven't tried these exact commands.
>
> Joel
>
===trimmed==

Thanks Joel the first part I figured out on my own still testing the second 
part, but good idea.



More information about the Linux-users mailing list