From owner-freebsd-questions Sat Nov 1 13:37:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA09407 for questions-outgoing; Sat, 1 Nov 1997 13:37:15 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA09402 for ; Sat, 1 Nov 1997 13:37:11 -0800 (PST) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt1-152.HiWAAY.net [208.147.147.152]) by fly.HiWAAY.net (8.8.7/8.8.6) with ESMTP id PAA14443; Sat, 1 Nov 1997 15:36:57 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by nospam.hiwaay.net (8.8.7/8.8.4) with ESMTP id PAA01473; Sat, 1 Nov 1997 15:36:43 -0600 (CST) Message-Id: <199711012136.PAA01473@nospam.hiwaay.net> X-Mailer: exmh version 2.0zeta 7/24/97 To: Bill Beavers cc: freebsd-questions@FreeBSD.ORG From: dkelly@hiwaay.net Subject: Re: backing up to tape In-reply-to: Message from Bill Beavers of "Sat, 01 Nov 1997 15:42:38 GMT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 01 Nov 1997 15:36:43 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I have tried to backup to my T4000s tape drive using the command > > dump 0 /dev/st0 > > but I get lots of data back ending with the dump being aborted. What am > I doing wrong? I have read the man page for dump, but still do not see > what I am missing. You tried to dump your tape drive to itself. And I don't know exactly why, but dump prefers the r tape device, rst0. Or at least that's whats shown in the man page examples and source code. I use: # setenv TAPE /dev/nrst1 # mt rew # dump -0ab 10k / # dump -0ab 10k /var # dump -0ab 10k /usr Notice the use of the no-rewind device, and that I'm putting multiple sets one after the other on the tape. The -a option is for automatic sizing of the media, meaning dump will run until the tape drive complains. Otherwise I find dump stops around 40M and asks for another tape. Problem with putting multiple sets on one tape is that you have to remember that later when restoring. And remember which went where. dump honors the TAPE environment variable. It doesn't say in the man page, its just one of those Unix things you're supposed to know. Or read the source code (line 110 of /usr/src/sbin/dump/main.c) -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.