got a couple DLT tape drives laying around and am experimenting with
backing up remote machines to tape. although this is done quite easily
for the local machine (see http://www.openbsd.org/faq/faq14.html#Backup
) there are some things i'm sure i'm not doing right in the remote case.
i am not interested in using AMANDA and will make a script available
that automates this procedure if anybody is interested.
the starting point is a "pull" backup script run from a backup host
ssh [EMAIL PROTECTED] 'dump -0au -f - /' | gzip -9 | gpg -e -r
[EMAIL PROTECTED] -o host0-root-0.dmp.gz.gpg
which outputs an encrypted zipped dump and i would like to put it on the
tape. the proper way of doing this is escaping me since i'm not
accustomed to the sequential nature of writing to tape. i'd like to be
able to write each .gpg file to tape as i generate it then delete it or
pipe it to the tape directly. going over the tar manpage has not been
supremely illuminating and has taught me that issuing
tar c host0-root-0.dmp.gz.gpg
will write the file to tape but trying to add another file doesn't work
out how i'd expect:
NOTE: TAPE=/dev/nrst0 here so it doesn't rewind after tar-ing
# tar r
host0-usr-0.dmp.gz.gpg
tar: End of archive volume 1 reached
tar: Sorry, unable to determine archive format.
# tar vr host0-usr-0.dmp.gz.gpg
tar: End of archive volume 1 reached
tar: Waiting for tape drive close to complete...done.
tar: Sorry, unable to determine archive format.
# tar c host0-usr-0.dmp.gz.gpg
# tar t
tar: End of archive volume 1 reached
tar: Sorry, unable to determine archive format.
# mt -f /dev/rst0
rewind
# tar t
host0-root-0.dmp.gz.gpg
# tar t
tar: End of archive volume 1 reached
tar: Sorry, unable to determine archive format.
so it appears that host0-usr-0.dmp.gz.gpg didn't get added to the
archive. any advice on how to have each dump written in sequence so the
tape's data looks like
<host0-root-0.dmp.gz.gpg> -> <host0-usr-0.dmp.gz.gpg> -> ... ->
<hostX-root-Y.dmp.gz.gpg> -> ...
would be appreciated. i expect that the relevant clues are all in the
manpages but i'm obviously looking at the wrong switches or commands and
clues along these lines would be great.
cheers,
jake