From owner-freebsd-questions@FreeBSD.ORG Mon May 16 18:52:24 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA54716A4CE for ; Mon, 16 May 2005 18:52:24 +0000 (GMT) Received: from smtp.cm.utexas.edu (smtp.cm.utexas.edu [146.6.135.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 707D843DAA for ; Mon, 16 May 2005 18:52:24 +0000 (GMT) (envelope-from virenp@mail.utexas.edu) Received: from mail.cm.utexas.edu (smtp.cm.utexas.edu [146.6.135.3]) by smtp.cm.utexas.edu (Postfix) with ESMTP id 457566DA7F; Mon, 16 May 2005 13:52:18 -0500 (CDT) Received: from 146.6.178.5 (SquirrelMail authenticated user vpatel) by mail.cm.utexas.edu with HTTP; Mon, 16 May 2005 13:52:18 -0500 (CDT) Message-ID: <36710.146.6.178.5.1116269538.squirrel@mail.cm.utexas.edu> In-Reply-To: <20050516183828.GB50140@xor.obsecurity.org> References: <55383.146.6.178.5.1116261378.squirrel@mail.cm.utexas.edu> <20050516183828.GB50140@xor.obsecurity.org> Date: Mon, 16 May 2005 13:52:18 -0500 (CDT) From: "Viren Patel" To: "Kris Kennaway" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: questions@freebsd.org Subject: Re: Transferring dump file to tape? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: virenp@mail.utexas.edu List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 18:52:24 -0000 > On Mon, May 16, 2005 at 11:36:18AM -0500, Viren Patel > wrote: >> Hello. I am using 'dump' to backup client filesystems to >> a >> disk file on an NFS mounted partition, e.g. >> >> dump -0aLu -f /bk/var-20050516 /var >> >> Now I'd like to take the backup file (var-200500516) and >> move it to tape (on the NFS server). However I'd like >> the >> tape to have the data just as if it had been created >> directly by 'dump', e.g. >> >> dump -0aLu -f /dev/nsa0 /var >> >> Any way to do this? I could use rdump/rmt to backup >> directly to the remote tape, but I am doing it this way >> to >> do fast disk-based backups during night and move to >> slower >> tapes during day. For normal restores I can use >> NFS-based >> files but have tapes for single-user-mode type restores. >> Thanks. > > You can use dd to write a file to a device (e.g. tape). > > Kris > I thought so too, but it doesn't work. When I issue dd if=var-20050516 of=/dev/nsa0 I get the following error: dd: /dev/nsa0: Invalid argument 1+0 records in 0+0 records out 0 bytes transferred in 0.000786 secs (0 bytes/sec) Since 'dump' works with /dev/nsa0 I am not sure what the problem is. Viren