how to append multiple dumps to single tape
Chris Howells
howells at kde.org
Mon Dec 15 18:52:43 PST 2003
-----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' option.
The following script works for me:
#!/usr/local/bin/bash
NTAPE="/dev/nrsa0"
TAPE="/dev/rsa0"
MT="/usr/bin/mt"
DUMP="/sbin/dump"
CAMCONTROL="/sbin/camcontrol"
FILESYSTEMS="/ /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.
- --
Cheers, Chris Howells -- chris at chrishowells.co.uk, howells at kde.org
Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C
KDE/Qt/C++/PHP Developer: http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQE/3nN1F8Iu1zN5WiwRAtbhAJ48lNe5ChRDsj0/faMR+nfvYr/bygCfZa5q
Qbu1tVXYbAEc9E9UxrkXKaM=
=+abu
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list