rvdump via ssh

From: Steve Feehan <sfeehan_at_sbb.uvm.edu>
Date: Tue, 07 Dec 2004 15:14:54 -0500

Question 1:
Has anyone used rvdump with ssh as the transport?

It seems that rvdump does not use /usr/bin/rsh as I have
replaced this with a wrapper script to invoke ssh with the
desired arguments. Here is what my (crude, really dumb)
wrapper script does:

#!/bin/sh

if [ ! -z "$RSH_CMD" ]
then
    COMMAND="$RSH_CMD"
else
    COMMAND=/usr/bin/rsh-dist
fi

exec $COMMAND $*

And then execute rdump as so:

  RSH_CMD="ssh -C -i /path/to/key -l NOTROOT" \
    /sbin/rvdump -0 -f remotehost:/dev/st0 /

But rvdump does not seem to be executing /usr/bin/rsh (ie.
my wrapper).

Of course, I could do:

  /sbin/rvdump -0 -f - / | ssh $SSH_ARGS dd of=/dev/st0

Or some variation thereof. The reason I hope to use
rmt is to be prompted for tape changing. So I guess
that is question #2:

Does rvdump detect end-of-tape and eject/prompt
for next tape? In my case the remote host with
the tape drive is a linux system.

Thanks!

-- 
Steve Feehan
Received on Tue Dec 07 2004 - 20:16:34 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT