From owner-freebsd-questions Mon Sep 11 11:54: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from implode.root.com (root.com [209.102.106.178]) by hub.freebsd.org (Postfix) with ESMTP id 9F6B437B422 for ; Mon, 11 Sep 2000 11:54:00 -0700 (PDT) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.8/8.8.5) with ESMTP id LAA09346; Mon, 11 Sep 2000 11:51:09 -0700 (PDT) Message-Id: <200009111851.LAA09346@implode.root.com> To: "Peter Ranger" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Tar In-reply-to: Your message of "Mon, 11 Sep 2000 11:39:14 PDT." <200009111839.LAA09290@implode.root.com> From: David Greenman Reply-To: dg@root.com Date: Mon, 11 Sep 2000 11:51:09 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>hello, >>I am a 16 year old student, and I am currently setting up a home >>network. I am trying to set up one of the computers for a backup >>machine. This machine has a tape drive in it. I was wondering how to >>use tar to back up entire folders and files to the tape drive. >>I need to be able to back up one directory that contains numerous other >>directories containing files, could you please email me with the syntax >>on how to use tar for this purpose. > > Assuming that your tape drive is called "/dev/rst0" (which it would be if >it were SCSI), then you would do something like: > >tar cf /dev/rst0 dir > >...where 'dir' is a subdirectory of your current directory. > If you want to see the files printed that are being archived, then make it >"tar cvf /dev/rst0 dir" (add the 'v' flag). ...quick followup on the above: The tape drive is called /dev/rsa0 on versions of FreeBSD >= 3.0 (what WAS I thinking!). If you get the name wrong, you'll end up with a big file in /dev, which is not what you want. :-) -DG David Greenman Co-founder, The FreeBSD Project - http://www.freebsd.org President, TeraSolutions, Inc. - http://www.terasolutions.com Pave the road of life with opportunities. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message