From owner-freebsd-questions@FreeBSD.ORG Fri Oct 16 21:45:56 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82A3B1065676 for ; Fri, 16 Oct 2009 21:45:56 +0000 (UTC) (envelope-from stevan-tiefert@kabelmail.de) Received: from smtpa1.mediabeam.com (smtpa1.mediabeam.com [194.25.41.13]) by mx1.freebsd.org (Postfix) with ESMTP id 188C58FC08 for ; Fri, 16 Oct 2009 21:45:55 +0000 (UTC) Received: from r300-1 (balancer4.mediabeam.com [194.25.41.40]) by smtpa1.mediabeam.com (8.13.8/8.13.1) with ESMTP id n9GLjtli016484; Fri, 16 Oct 2009 23:45:55 +0200 Received: from [88.134.61.105] (88-134-61-105-dynip.superkabel.de [88.134.61.105]) (authenticated bits=0) by smtpa.mediabeam.com (8.13.8/8.13.1) with ESMTP id n9GLjstm016478; Fri, 16 Oct 2009 23:45:54 +0200 From: Stevan Tiefert To: Jerry McAllister In-Reply-To: <20091016213732.GA61433@gizmo.acns.msu.edu> References: <1255727601.4640.4.camel@x1-6-00-11-09-00-e4-00.search.b.superkabel.de> <20091016213732.GA61433@gizmo.acns.msu.edu> Content-Type: text/plain Date: Fri, 16 Oct 2009 23:45:53 +0200 Message-Id: <1255729553.4640.6.camel@x1-6-00-11-09-00-e4-00.search.b.superkabel.de> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1.1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: small question about tape-based dumps X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2009 21:45:56 -0000 Am Freitag, den 16.10.2009, 17:37 -0400 schrieb Jerry McAllister: > On Fri, Oct 16, 2009 at 11:13:21PM +0200, Stevan Tiefert wrote: > > > Hello list, > > > > one example: If I have three partitions and I want to backup every day > > these partitions, will I need 21 tapes? > > > > I ask because it seems it is not possible to place more than one dump on > > one tape, isn't it? > > You can easily put more than one dump on a tape if there is > room enough for them. Check out the mt(1) command. > > Something like mt fsf 1 will skip over the first dump file > so you can write the second. mt fsf 2 will skip over two files, etc. > That is dump files, not files within the dump. Each dump of a > filesystem is one file. > > If you need to restore, it is just the same. The first dump is > the first file. The second dump is reached by skipping 1 file > with the mt command, etc. > > I actually rewind and skip between each dump of multiples made > to the same tape. I also use the no-rewind device for the tape. > > So first dump is: dump 0af /dev/nsa0 / > > For second dump: mt -f /dev/nsa0 rewind > mt -f /dev/nsa0 fsf 1 > dump 0af /dev/nsa0 /usr > > third mt -f /dev/nsa0 rewind > mt -f /dev/nsa0 fsf 2 > dump 0af /dev/nsa0 /var > > etc. > > when all done mt -f /dev/nsa0 rewind > mt -f /dev/nsa0 offline > > I have this all in a script that also writes an index file > as the first file on the tape. > > Of course if you are doing a change dump the dump command is > going to look more like: > > dump 1af /dev/nsa0 > etc. > > ////jerry > > > > > With regards > > Stevan Tiefert > > > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Hello Jerry, The world can be so easy!!! Thanks for this hint :-) With regards Stevan Tiefert