Hi,
I have 2 servers that get backed up to tape. I was scping the daily
dump files to the server with the tape attached but now I no longer have
hard disk room to do that.
So I read the man page for rdump/dump and that led me to rmt but I have
been unable to make this work. It fails with a connection refused
error, and I could not glean from the rmt manpage why.
jr...@dukkha:/home/jross $ sudo sh -x /etc/scripts/tape_backup.sh
Password:
+ dump -0a -f nirvana.internal:/dev/nrst0 /dev/sd0a
nirvana.internal: Connection refused
+ exit
nirvana does have pf enabled, but it uses a pass all ruleset.
So I next wrote a quick shell script that pushes the dump data across
the lan with ssh and uses dd to write it to the tape drive.
#!/bin/sh
#section 1 --/
dump -0a -f - /dev/sd0a | ssh nirvana "dd of=/dev/nrst0 bs=1024"
#section 2 --/cvs
dump -0a -f - /dev/sd1g | ssh nirvana "dd of=/dev/nrst0 bs=1024"
#section 3 --/home
dump -0a -f - /dev/sd0k | ssh nirvana "dd of=/dev/nrst0 bs=1024"
#section 4 --/profiles
dump -0a -f - /dev/sd1b | ssh nirvana "dd of=/dev/nrst0 bs=1024"
#section 5 --/shared
dump -0a -f - /dev/sd1d | ssh nirvana "dd of=/dev/nrst0 bs=1024"
#section 6 --/stars
dump -0a -f - /dev/sd1e | ssh nirvana "dd of=/dev/nrst0 bs=1024"
#section 7 --/bookkeeping
dump -0a -f - /dev/sd0n | ssh nirvana "dd of=/dev/nrst0 bs=1024"
#done
ssh nirvana mt rewoffl
After a little trial and error this works, with one caveat--when a tape
fills up the section it is working on aborts rather than calling for the
second tape as a local dump-to-tape would.
I can manually split this into two sections but that won't scale.
Thanks in advance for any cluesticks or hints!
Jeff Ross