*BSD News Article 75259


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!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!nntp.primenet.com!news.primenet.com!zeek
From: zeek@primenet.com (John Reynolds)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: tar on floppy
Date: 1 Aug 1996 20:09:02 -0700
Organization: Four Guys' Plumbing -- South Chandler
Lines: 28
Message-ID: <4trrge$hjd@nnrp1.news.primenet.com>
References: <320057E5.22C5@bmgsk.ada.at>
Reply-To: zeek@primenet.com
X-Posted-By: ip-20-208.phx.primenet.com
X-Newsreader: slrn (0.8.8.2 UNIX)

On Thu, 01 Aug 1996 09:08:21 +0200, Alexander Hausner <alexander.hausner@bmgsk.ada.at> wrote:
> Hello Folks!
> 
> I use tar cvf /dev/fd0 <dirname> to backup a directory on a 1.44 MB
> floppy, but it does not put 1.44 MB on disk, only about 1/4 or so.
> 
> How can I put 1.44MB on floppy?

I have a shell script that backs up my /etc /root and my own dotfiles
on a nightly basis to floppy. In order for tar to not complain this is what
I had to do:

tar --block-compress -z -c -f /dev/fd0 -b 36 <files ...>

the -b 36 and --block-compress seem to be the magic words ...

hope this helps.

-Jr

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
John Reynolds               Four Guys' Plumbing -- South Chandler -- M.o.S.T.W.
jreynold@sedona.intel.com     Computing Enhancement Division, Intel Corporation
zeek@primenet.com                             My opinions are mine, not Intel's
http://www.primenet.com/~zeek/                   Running FreeBSD and loving it!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=