From owner-freebsd-questions Mon Nov 24 01:24:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA19388 for questions-outgoing; Mon, 24 Nov 1997 01:24:14 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA19380 for ; Mon, 24 Nov 1997 01:24:08 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.5) id TAA27468; Mon, 24 Nov 1997 19:52:16 +1030 (CST) Message-ID: <19971124195216.29750@lemis.com> Date: Mon, 24 Nov 1997 19:52:16 +1030 From: Greg Lehey To: Jacques Hugo Cc: questions@FreeBSD.ORG Subject: Re: some backup questions References: <347936EA.167EB0E7@wired.ctech.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <347936EA.167EB0E7@wired.ctech.ac.za>; from Jacques Hugo on Mon, Nov 24, 1997 at 10:12:26AM +0200 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Nov 24, 1997 at 10:12:26AM +0200, Jacques Hugo wrote: > Hi there... > > I'm running some backups here to a DAT drive, but I'd like > to know if I'm doing this right or where I can improve. > > This is what I usually do: > >> mt -f /dev/nrst0 erase >> mt -f /dev/nrst0 retension > > Is this ok? Well, it doesn't do any harm. > Do I have to erase ("format ??") the new tape everytime? No, you never need to do it. You don't need to retension, either. > Then: > >> tar -czvf /dev/nrst0 /usr/home/user > > After this, do I have to write some 'eof' stuff to the > volume I backed up, or can I just continue with another > file system? Just continue. The driver writes the EOF automatically when the tar exits. > I keep log of everything I back up. And if I want to restore > some data, I; > >> mt -f /dev/nrst0 rewind >> mt -f /dev/nrst0 fsf 3 (for eg.) >> tar -xzvf /dev/nrst0 > > I'd like to here how you guys do it. That's pretty much correct. If you export an environment variable TAPE, you can simplify things. For example (Bourne shell and friends) # TAPE=/dev/nrst0; export TAPE # mt rewind # mt fsf 3 # tar xzv Greg