Date: Mon, 11 Sep 2000 11:51:09 -0700 From: David Greenman <dg@root.com> To: "Peter Ranger" <grievous@powerup.com.au> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Tar Message-ID: <200009111851.LAA09346@implode.root.com> In-Reply-To: Your message of "Mon, 11 Sep 2000 11:39:14 PDT." <200009111839.LAA09290@implode.root.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009111851.LAA09346>