*BSD News Article 81115


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!howland.erols.net!news.mathworks.com!uunet!news-in2.uu.net!news.new-york.net!news.columbia.edu!news.cs.columbia.edu!news
From: mwhite@freehold.cs.columbia.edu (Matt White)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Tape Backup solution (s?)
Date: 18 Oct 1996 16:44:53 GMT
Organization: Columbia University Department of Computer Science
Lines: 66
Message-ID: <548c65$ln1@lol.cs.columbia.edu>
References: <ADzetAs47F@qsar.chem.msu.su>
NNTP-Posting-Host: freehold.cs.columbia.edu
Mime-Version: 1.0
Content-Type: multipart/mixed;
    boundary="=-=-=__ScbtYGLe8rOU9Ab7+HVJDAsTY__=-=-="
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.8

--=-=-=__ScbtYGLe8rOU9Ab7+HVJDAsTY__=-=-=

man dump
man restore

If you have a SCSI tape, you want to use the /dev/nrst0 (non-rewind
device) for all but the last volume, when you want to use /dev/rst0.


-Matt

In article <ADzetAs47F@qsar.chem.msu.su>,
	"Eugene Radchenko" <eugene@qsar.chem.msu.su> writes:
> Hi people!
> I wonder if someone can recommend the backup solution with the following
> features:
> 1 - ability to store several backup sets (e.g. different filesystems)
> 2 - ability to completely restore a FS (down to each symlink etc. i.e.
> completely reproduce the original system)
> 3 - ability to selectively restore specific files
> 
> Am I naive to hope for a single solution? If so, which programs are better
> for each type of problem (2 and 3)?

----------
Matt White
Dept of Computer Science	mwhite@cs.columbia.edu
Columbia University		http://www.cs.columbia.edu/~mwhite
--=-=-=__ScbtYGLe8rOU9Ab7+HVJDAsTY__=-=-=
Content-Type: text/plain;
Content-Disposition: attachment; filename="backup.sh"

#!/bin/sh
#  Shell Script to handle my backups
#

host=`hostname -s`
date=`date`
day=`date | sed y/" "/"\n"/ | sed 2,'$'d`

echo "Subject: $host Daily Backups"

if [ $day = "Sun" ] ; then
  dumpcmd="8ufB" ;
elif [ $day = "Mon" ] ; then
  dumpcmd="7ufB" ;
elif [ $day = "Tue" ] ; then
  dumpcmd="6ufB" ;
elif [ $day = "Wed" ] ; then
  dumpcmd="5ufB" ;
elif [ $day = "Thu" ] ; then
  dumpcmd="4ufB" ;
elif [ $day = "Fri" ] ; then
  dumpcmd="0ufB" ;
elif [ $day = "Sat" ] ; then
  dumpcmd="9ufB" ;
fi

echo $date: Doing $dumpcmd dump of /, /var and /usr...

dump $dumpcmd /dev/nrst0 9999999 /
dump $dumpcmd /dev/nrst0 9999999 /var
dump $dumpcmd /dev/rst0 9999999 /usr

echo ...done!
--=-=-=__ScbtYGLe8rOU9Ab7+HVJDAsTY__=-=-=--