Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!arclight.uoregon.edu!news-peer.gsl.net!news.gsl.net!www.nntp.primenet.com!nntp.primenet.com!cam-news-hub1.bbnplanet.com!news.mathworks.com!newsfeed.internetmci.com!in3.uu.net!ivan.iecc.com!mailgateway
From: johnl@iecc.com (John R Levine)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Backups to SCSI tape
Date: 13 Oct 1996 12:12:26 -0400
Organization: I.E.C.C., Trumansburg, N.Y.
Lines: 35
Sender: johnl
Message-ID: <m0vCT9N-000I0UC@ivan.iecc.com>
References: <3260DA6B.6F1@interlog.com>
NNTP-Posting-Host: ivan.iecc.com
>What is the best way to backup the system to a scsi tape drive. I need
>to run daily backups.
I have a nice big tape drive, so I back up all of the interesting
parts of the disks every night using pax. Interesting excludes the
news spool and the parts of the system loaded from the CD-ROM.
Here's the guts of the script that I use. It takes an argument that
lets me back up to a drive on another system.
---cut here---
cd /
find -P .[a-zA-Z]* * \
\( ! -fstype ufs -a -prune \) -o \
\( -path "var/news/spool" -a -prune \) -o \
\( -path "*/.netscape/cache" -a -prune \) -o \
\( -newer /.base-2.1 -o \
! -path "usr/src/*" \
! -path "usr/contrib/*" \
! -path "usr/X11R6/*" \
! -path "usr/share/*" \) \
! -name "*~" \
-print |
case "$1" in
r) pax -wd -t -x ustar 2>/tmp/dump-warnings |
rsh chico "dd bs=1k of=/dev/rst0" >/tmp/tape-warnings ;;
*) pax -wdf $TAPE -t -x ustar 2>/tmp/dump-warnings ;;
esac
--
John R. Levine, IECC, POB 640 Trumansburg NY 14886 +1 607 387 6869
johnl@iecc.com "Space aliens are stealing American jobs." - MIT econ prof