Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2003 02:52:33 +0000
From:      Chris Howells <howells@kde.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: how to append multiple dumps to single tape
Message-ID:  <200312160252.38264.howells@kde.org>
In-Reply-To: <003601c3c37a$99ac05c0$5401a8c0@borg.fielden.com.au>
References:  <003601c3c37a$99ac05c0$5401a8c0@borg.fielden.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
=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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312160252.38264.howells>