From owner-freebsd-questions Fri Oct 13 6:12:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from snoopy.brwn.org (intgw1.brwn.org [196.28.127.66]) by hub.freebsd.org (Postfix) with ESMTP id BC59237B502 for ; Fri, 13 Oct 2000 06:12:21 -0700 (PDT) Received: by snoopy.brwn.org (Postfix, from userid 1000) id 82F753ABC; Fri, 13 Oct 2000 15:12:08 +0200 (SAST) Date: Fri, 13 Oct 2000 15:12:08 +0200 From: Willem Brown To: j mckitrick Cc: Tony Landells , freebsd-questions@FreeBSD.ORG Subject: Re: tar to file or tar to device ? Message-ID: <20001013151208.A22531@snoopy.brwn.org> References: <200010122242.JAA20459@tungsten.austclear.com.au> <20001013115036.A51415@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001013115036.A51415@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Fri, Oct 13, 2000 at 11:50:36AM +0100 X-Public-Key: http://willem.brwn.org/pubkey.txt X-Chat-Server: http://chat.brwn.org/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, On Fri, Oct 13, 2000 at 11:50:36AM +0100, j mckitrick wrote: > On Fri, Oct 13, 2000 at 09:42:20AM +1100, Tony Landells wrote: > | > IIUC, tar to a device, in my case /mnt/zip, treats the whole disk like a big > | > tar file, not allowing any other use, correct? > | > | If you really mean /mnt/zip, then you probably have the disk mounted, in > | which case you're writing to a file on the device. > > If you tar to /mnt/zip, what would the filename be? If /mnt/zip is a mount point(directory) to a zip drive tar will complain that is a directory. You'll have to do something like the following. tar cvf /mnt/zip/back_file.tar file1 file2 ... You can also do a back to the device without mounting it. ex. tar cf /dev/fd0 file1 file2 You won't be able to mount the floppy since it won't contain a valid file system only a valid (hopefully) tar archive. To list the contents of the archive on the floppy you would type: tar tvf /dev/fd0 I've not ever used a zip drive myself but I'm sure the same would apply. > > > > jcm > -- > "I drank WHAT ?!" - Socrates > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > Best Regards Willem Brown -- /* =============================================================== */ /* Linux, FreeBSD, NetBSD, OpenBSD. The choice is yours. */ /* =============================================================== */ You are not drunk if you can lay on the floor without holding on. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message