From: Gabor Herr (herr@hp14.iti.informatik.th-darmstadt.de)
Date: 07/14/92


From: herr@hp14.iti.informatik.th-darmstadt.de (Gabor Herr)
Subject: Re: backup
Date: Tue, 14 Jul 1992 09:39:04 GMT

In article <23087@ifi.informatik.uni-stuttgart.de>, weberj@dia.informatik.uni-stuttgart.de (Weber) writes:
> I'd like to have a program xxx so that I could
> backup my linux partition in the fellowing way:
>
> tar -cz / | xxx
>
> and
>
> xxx | tar -xz
>
>
> so that xxx would mount the disk, output (or input) the
> data , umount the disk and prompt for another.
>
> In theory this seems quite simple, something like
>
> { while not eof
> mount
> output while not full
> umount
> prompt for new disk
> endwhile
> }
>
> Does it work that easy?
> How does the program know the disk size?
>
> Or does such a program already exist?
>

You have that program already, it is tar. With option 'L', you can set the
tape (or floppy) length. After that many blocks are written, tar prompts for
the next tape (or floppy), even if the output is in compressed format.

I make a backup of my root partition to 1.2meg floppies with the following
command:

tar -c -v -z -f /dev/fd0h1200 -L 1200 /

I hope this will help you...

Gabor

############################################################################
Gabor Herr Email: herr@iti.informatik.th-darmstadt.de
Computer Science Department
Technical University of Darmstadt, Germany