Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 1997 00:33:30 -0500 (EST)
From:      "Brian L. Heess" <brian@krumm.commline.com>
To:        "David E. Cross" <dec@phoenix.its.rpi.edu>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: best way to back up?
Message-ID:  <Pine.BSF.3.95.970224002127.17182A-100000@krumm.commline.com>
In-Reply-To: <199702240228.VAA03134@phoenix.its.rpi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 23 Feb 1997, David E. Cross wrote:

> I am curious as to what the "best" way is to back up to a 8mm tape on a
> different machine.  I have found that (for me) tar seems to be the easiest
> to use, however, I can't get it to do an incremental backup, and it seems to
> choke on some of the "special" files in /dev.  dump/rdump let you me do 
> differential backups, but I can only do one per tape?

You can probably figure it out from this little script I have on a SunOS
machine.  You'll probably also see that I had it it doing local backups
originally: 

#!/bin/sh
#
#       Example dump for level 0 - modified dir 
#

# show when we started...
date

# set vars
DUMP=/usr/etc/dump
HOST=ickis
TAPE=/dev/nrst5

#
#       Rewind the tape
#
echo Rewind the tape...
###mt -f $TAPE rewind
rsh -n -l root $HOST mt -f $TAPE rewind

#
# For each partition
#
#Filesystem            kbytes    used   avail capacity  Mounted on
#/dev/sd0a              11455    7384    2926    72%    /
#/dev/sd1g             315163  218950   64697    77%    /usr
#/dev/sd0g             147685  126657    6260    95%    /home
#/dev/sd1a             596262  444840   91796    83%    /usr/local
#/dev/sd2g            1372510  683196  552063    55%    /var
#/dev/sd2a             460005   32881  381124     8%    /var/local/db
#
BACKUP='/ /usr /home /usr/local /var /var/local/db'
pos=0
# Usage: ufsdump [0123456789fustdWwnDCcbavloS [argument]] filesystem
for part in $BACKUP;
        do
                echo "`date` |  File#$pos : Working on $part"
#               $DUMP 0bdsfu 112b 15000 30000 $TAPE $part
                $DUMP 0bdsfu 112b 15000 30000 $HOST:$TAPE $part
                pos=`expr $pos + 1`
        done

#
#       rewind and eject the tape
#

echo Rewind and eject the tape...
##mt -f $TAPE rewoffl
rsh -n -l root $HOST mt -f $TAPE rewoffl 
date

# EOF


--
Brian L. Heess, brian@thru.net | Office: 201.288.1136
VP Technology                  |    Fax: 201.288.0213
Vanguard InterActive, Inc.     |   Home: 201-387-2574 / 201-287-0739
My personal URLs: brian@commline.com - http://www.commline.com  (DM/BONG)
Co-founder: EarthLink Net, brian@earthlink.net - http://www.earthlink.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970224002127.17182A-100000>