On Thu, Jun 29, 2000 at 11:20:45AM +0100, Nigel Trivass wrote:
| I've got another question which I hope you can help me with. Do you know how
| I would go about making this tape device shareable over a closed LAN to a
| couple of other machines [solaris]? I'd like to be able to take remote
| backups of these workstations using this tape drive.

Several backup commands (like dump) understand syntax for remote tape
drives, and will internally use rsh to delivery the data. However, I
much prefer to run it the other way to avoid multiple machines reaching
for the tape at the same time: control the backups from your machine
with the tape drive, and use ssh to run the backup and collect the
data:

        mt rewind
        for host in a b c
        do  for dir in `cat what2dump.$host`
            do  ssh -n host tar cf - $dir | dd bs=64k of=/dev/st0n
            done
        done

Obviously the blocksize and tape device need adjusting to suit, and the
above is pretty crude, but it ensures only one thing wants the tape at
a time. Note the use of the no-rewind tape device. And of course you'll
have to arrange that you can actually ssh to the target machine as root
somehow (this is normally off, and for good reason). And tar may not be
your preferred backup program. But you get the idea.

Cheers,
--
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

The least pain in our little finger gives us more concern and uneasiness than
the destruction of millions of our fellow human beings.
        - William Hazlitt, Works, Vol.X


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to