From: Michael Hamilton (hamilton@peponi.wcc.govt.nz)
Date: 05/22/92


From: hamilton@peponi.wcc.govt.nz (Michael Hamilton)
Subject: Backup methods for those with DOS tape units.
Date: 22 May 1992 12:49:40 GMT

Now that linux is getting larger, backups are becoming an issue,
here's one solution that was originally posted to alt.os.linux.

> Article: 454 of alt.os.linux
> From: hedrick@dumas.rutgers.edu (Charles Hedrick)
> Newsgroups: alt.os.linux
> Subject: Re: A couple of problems...
> Organization: Rutgers Univ., New Brunswick, N.J.
...
> By the way, here's the way I do full backups. I haven't gotten around
> to doing partials yet, but at least keep a timestamp so I do can a
> find -newer. Note that what I'm doing is piping the backup into
> mwrite, which writes a file under DOS. Obviously this requires a lot
> of disk space, since I end up with two copies of Linux, one under DOS.
> I have a cartridge tape drive that works only under DOS, so I then
> bring up DOS and do a backup there. If you do that, don't forget to
> keep a copy of mread somewhere under DOS, since you'd need that to
> restore from backups.
>
> #!/bin/sh
> tar -c -b 200 -X /etc/dump.excludes -f - / | /usr/local/bin/mwrite - c:/unixback/dump.tar
> touch /etc/dump0.stamp
>
> /etc/dump.excludes is a file listing things not to backup. It
> currently lists only /.badblocks.

I found that my /etc/mtools config-file version of mtools (from
tsx-11? - I can't remember), didn't allow mwrite to accept it's input
from stdin. But Charles directed me to mtoolbin an mtoolsrc on
cs.rutgers.edu in /pub/linux. I found that the cs.rutgers.edu version
doesn't support /etc/mtools, but that the patches for this can be
applied to mtoolsrc to get the best of both worlds.

-- 
Michael Hamilton, Computer Services Section, Wellington City Council, P.O. Box
2199, Wellington, New Zealand.  Phone: (64) (4)801-3300  FAX: (64) (4)801-3020
Domain: hamilton@csc.wcc.govt.nz          PSImail: PSI%0530147000090::HAMILTON