[huskerlug] Re: Backups

Very nice.  This is what I like to see.

> #! /bin/bash
> #Backup / to ee-mu
> # create file name
> JDATE=`date +%Y-%m-%d`
> JNAME=`echo "${HOSTNAME}_${JDATE}.tar.gz"`
> cd /root
> # Tar to tmp
> tar -cvzf /tmp/${JNAME} --exclude-from /root/tar_exclude / > log.out 2>
> error.out
> #Copy to ee-mu
> if cp -vf /tmp/${JNAME} /mnt/ee-mu >>log.out 2>> error.out
> then
>     tail ./log.out > log2.out; ls -l /tmp|grep "${JNAME}" >> log2.out;
> ls -l
> /mnt/ee-mu|grep "${JNAME}" >> log2.out; mail -s "Backup Successful
> ${HOSTNAME}" root < log2.out; rm -f log2.out
>     rm /tmp/${JNAME}
> else
>         mail -s "Backup Failed ${HOSTNAME}" root < error.out
> fi
>
> Better? :-) you all can marvel at my lack luster scripting abilities,
> but hey it works and it's dynamic.  I run this on 5 Linux system weekly
> which throw their files up on to one system which has a tape drive then
> tar that system to the tape.  I originally started out using bzip but
> some are so slow that it was taking too long, all but one have some
> level of RAID to protect from physical drive failure, simple software
> mirrors to hardware RAID 5. on the system without RAID I have a zip disk
> which does daily backups of the only real critical files it has.  Plus
> there is usually redundant copies of files else were, spread over
> Novell, windows and Linux systems.  This help protect against, viruses,
> hacks and anything else.
>
> ----- Original Message -----
> From: "Eric Penne" <epenne@xxxxxxxx>
> To: <huskerlug@xxxxxxxxxxxxx>
> Sent: Thursday, July 24, 2003 8:58 AM
> Subject: [huskerlug] Re: Backups
>
>
>> I don't mean to be picky, but discussing back up options in Windows
>> seems to be a little off topic for the list.
>
>
> ----
> Husker Linux Users Group mailing list
> To unsubscribe, send a message to huskerlug-request@xxxxxxxxxxxxx
> with a subject of UNSUBSCRIBE



----
Husker Linux Users Group mailing list
To unsubscribe, send a message to huskerlug-request@xxxxxxxxxxxxx
with a subject of UNSUBSCRIBE


Other related posts: