tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Steve Feehan <sfeehan@sbb.uvm.edu>
Subject: rvdump via ssh
Date: Tue, 07 Dec 2004 15:14:54 -0500	[thread overview]
Message-ID: <20041207201453.GE5542@localhost.localdomain> (raw)

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


             reply	other threads:[~2004-12-07 20:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-07 20:14 Steve Feehan [this message]
2004-12-07 21:45 ` Cant find classes.zip Bugs
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox