home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!gatech!destroyer!ais.org!sno
- From: sno@ais.org (Stephen Opal)
- Subject: Re: [Q] tar destination across multiple volumes
- Message-ID: <C0r4KC.DpL@ais.org>
- Organization: UMCC
- References: <C0o1KH.Ayw@ais.org>
- Distribution: na
- Date: Tue, 12 Jan 1993 17:28:58 GMT
- Lines: 69
-
- In article <C0o1KH.Ayw@ais.org> sno@ais.org (Stephen Opal) writes:
- >I have heard that tar might be able to store its output across volumes.
- >
- >In my case I'm looking for a way to archive an entire partition to
- >a floppy device. This floppy will obviously fill up long before the
- >tar is done. Is there a way to get tar to continue on the next installed
- >floppy volume. It seems there would be a bit of a problem with sync.
- >
- >Assistance would be appreciated.
- >
- >--
- >Stephen N. Opal sno@umcc.ais.org
-
- And the information I have received that has proved the most helpful...!
-
- -------
-
- >Return-Path: <dfox@quack.sac.ca.us>
- >>I have heard that tar might be able to store its output across volumes.
- >
- >Some versions (i.e., GNU tar) can.
- >
- >>In my case I'm looking for a way to archive an entire partition to
- >>a floppy device. This floppy will obviously fill up long before the
- >
- >Check out the -M (multi-volume) flag. It will prompt you to put in the
- >floppies as needed. -M works fairly well unless you're trying to compress
- >the data on floppies; even though tar has a -z flag, it will compress a
- >floppy's worth of data before writing it, thus you end up with only a part
- >of the disk being used, and you end up with the same number of disks if
- >you hadn't turned compression on in the first place.
- >
- >For backups here, since I want compression (just to save on disks) I use
- >a program called 'backflops' which uses tar as part of the work but has
- >code to get around the problem with compressing floppies on multiple
- >volumes. It works reliably for backup (although, it would be nicer if
- >I had my tape drive working under Unix.) :)
- >
- >>tar is done. Is there a way to get tar to continue on the next installed
- >>floppy volume. It seems there would be a bit of a problem with sync.
- >
- >An interesting concern, but I think it's unjustified. I believe tar is
- >smart enough to close the floppy device before telling you to insert the
- >next one. Also, since you aren't writing to a filesystem, just a raw
- >device, sync shouldn't be necessary.
- >
- >
- >>Stephen N. Opal sno@umcc.ais.org
- >--
- >David Fox
-
- So, along with a little experimentation on my part, I have succeeded!
-
- While my current backup procedure *DOES NOT COMPRESS*, it does tar
- to /dev/fd1 (unmounted device) in a relatively efficient way. I have just
- finished a tar store to the device that took 17 1.44 Meg floppies (Linux
- preliminary configuration) with no difficulty at all.
-
- The key was to tar to an unmounted device. Sort of like sending stuff
- to /dev/null, but with better results I hope!
-
- I'm not so sure I want to use any type of compression because my
- understanding is that if a byte of data gets corrupted, you could end up
- with garbage for all data after it. Should something like that happen on
- the first floppy at the wrong time, well, let's just say that I value
- my full head of hair.
-
- --
- Stephen N. Opal sno@umcc.ais.org
-