From owner-freebsd-questions@FreeBSD.ORG Mon Dec 15 18:52:43 2003 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 174B016A4CE for ; Mon, 15 Dec 2003 18:52:43 -0800 (PST) Received: from mail.devrandom.org.uk (82-68-135-38.dsl.in-addr.zen.co.uk [82.68.135.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B2EB43D39 for ; Mon, 15 Dec 2003 18:52:39 -0800 (PST) (envelope-from howells@kde.org) Received: from 192.168.1.186 (unknown [192.168.1.186]) by mail.devrandom.org.uk (Postfix) with ESMTP id EC32B133A9 for ; Tue, 16 Dec 2003 02:52:37 +0000 (GMT) From: Chris Howells Organization: K Desktop Environment To: freebsd-questions@freebsd.org Date: Tue, 16 Dec 2003 02:52:33 +0000 User-Agent: KMail/1.5.94 References: <003601c3c37a$99ac05c0$5401a8c0@borg.fielden.com.au> In-Reply-To: <003601c3c37a$99ac05c0$5401a8c0@borg.fielden.com.au> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200312160252.38264.howells@kde.org> Subject: Re: how to append multiple dumps to single tape X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2003 02:52:43 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 16 December 2003 02:16, DG wrote: > On the subject of multiple dumps, how does one append several dumps to the > same tape? The dump man page does not seem to indicate an 'append' optio= n. The following script works for me: #!/usr/local/bin/bash NTAPE=3D"/dev/nrsa0" TAPE=3D"/dev/rsa0" MT=3D"/usr/bin/mt" DUMP=3D"/sbin/dump" CAMCONTROL=3D"/sbin/camcontrol" =46ILESYSTEMS=3D"/ /var /backup" echo "Rewinding the tape" $MT -f $TAPE rewind echo "Starting the backup" for fs in $FILESYSTEMS do $DUMP -0au -f $NTAPE $fs done echo "Rewinding the tape" $MT -f $TAPE rewind echo "Ejecting the tape" $CAMCONTROL eject sa0 > I have a SCSI DAT drive (DDS2) if that makes any difference to it's > appendability. Same here. =2D --=20 Cheers, Chris Howells -- chris@chrishowells.co.uk, howells@kde.org Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C KDE/Qt/C++/PHP Developer: http://www.kde.org =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/3nN1F8Iu1zN5WiwRAtbhAJ48lNe5ChRDsj0/faMR+nfvYr/bygCfZa5q Qbu1tVXYbAEc9E9UxrkXKaM=3D =3D+abu =2D----END PGP SIGNATURE-----