[lug] backup install
j davis
davis_compz at hotmail.com
Sun Aug 4 21:31:07 MDT 2002
so i really have alot of configs and binaries here and there...so i would
perfer
to use some tiny boot distro to untar all of my backup without
reinstalling...
having winex and all my games restored...and transcode etc. etc.
so could i use you script and set / as the sorce to tar? then just boot from
floppy/cd with boot floppy and untar with a generic 'tar -xvf'?
Thanks,
jd
>From: dan radom <dan at radom.org>
>Reply-To: lug at lug.boulder.co.us
>To: lug at lug.boulder.co.us
>Subject: Re: [lug] backup install
>Date: Sun, 4 Aug 2002 19:02:39 -0600
>
>i've found that i don't really need full partition backups. if something
>drastic happens i would rather reinstall the OS and copy selected
>configuration files and mail spools and all that stuff doem backup. i
>backup al lmy hosts using a tar to an nfs autofs mount. i run it on linux
>and netbsd systems, and it works like a charm. i redirect stderr to
>/dev/null so i don't hear it complain about files that aren't there, as all
>the systems have different setups and functions. same script runs on all
>hosts. here's the script. this gives me 3 weeks of backup to restore
>from, which i periodically burn to cd.
>
>dan
>
>
>#!/bin/sh
># dan at radom.org | 04.01.2001
>#
>export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/pkg/bin:/usr/pkg/sbin
>date=`date '+%m-%d'`
>hostname=`hostname -s`
>files="\
> /etc \
> /var \
> /home \
> /usr/TSS \
> /usr/local/etc \
> /usr/pkg/etc \
> /usr/tftpboot/SMS* \
> /usr/local/etc \
> /usr/local/apache \
> /usr/local/bin/rc.firewall \
> /usr/local/netsaint \
> /usr/local/share \
> /usr/local/lib/php.ini \
> /usr/src/sys/arch/i386/conf/pluto \
> /usr/pkg/etc \
> /var/spool/mail \
> /usr/src/linux/.config \
> /storage/apache \
> /storage/pgsql \
> /root \
>"
>
>rm -f `find /mnt/autofs/backup/ -atime +21 -type f`
>tar zcfp /mnt/autofs/backup/$hostname-$date.tar.gz $files
>
>
>
>* j davis (davis_compz at hotmail.com) wrote:
> > Hello,
> > I had a scare yesterday when my mail server went down...thought
> > motherboard died
> > but it was just the agp slot. Anyway...thought i was going to have to
> > reinstall
> > redhat plus all the other stuff i have installed ( cgi scrips, webmail
>etc.)
> > So i am wondering if some one could point me to some info on makeing a
> > exact copy of every partion i have and a way to restore my backup in the
> > event of
> > trouble. I have a cd-burner and network drives to work with.
> >
> > thanks,
> > jd
> >
> > jd at taproot.bz
> > http://www.taproot.bz
> >
> > _________________________________________________________________
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
> > _______________________________________________
> > Web Page: http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>_______________________________________________
>Web Page: http://lug.boulder.co.us
>Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
thanks,
jd
jd at taproot.bz
http://www.taproot.bz
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
More information about the LUG
mailing list