From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Steve Feehan Newsgroups: gmane.os.tru64.managers Subject: rvdump via ssh Date: Tue, 07 Dec 2004 15:14:54 -0500 Message-ID: <20041207201453.GE5542@localhost.localdomain> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1102450528 31009 80.91.229.6 (7 Dec 2004 20:15:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Dec 2004 20:15:28 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Dec 07 21:15:19 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1Cbljy-0004uw-00 for ; Tue, 07 Dec 2004 21:15:19 +0100 Original-Received: (qmail 29661 invoked by uid 5); 7 Dec 2004 20:14:38 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 29645 invoked by uid 49501); 7 Dec 2004 20:14:38 -0000 Original-Received: from sfeehan@sbb.uvm.edu by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.110):SA:0(-2.6/5.0):. Processed in 1.557847 secs); 07 Dec 2004 20:14:38 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 7 Dec 2004 20:14:36 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I8D00H14C8AXL@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 07 Dec 2004 15:14:34 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0I8D00102C7R1Y@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 07 Dec 2004 15:14:21 -0500 (EST) Original-Received: from oak.sbb.uvm.edu (oak.sbb.uvm.edu [132.198.56.129]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTPS id <0I8D00LJ4C7PK2@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 07 Dec 2004 15:14:14 -0500 (EST) Original-Received: from cedar.sbb.uvm.edu (Debian-exim@cedar.sbb.uvm.edu [192.168.50.130]) by oak.sbb.uvm.edu (8.13.1/8.13.1/Debian-15) with ESMTP id iB7KFcXU015465 for ; Tue, 07 Dec 2004 15:15:38 -0500 Original-Received: from sfeehan by cedar.sbb.uvm.edu with local (Exim 4.34) id 1Cblja-0001Ud-1p for tru64-unix-managers@ornl.gov; Tue, 07 Dec 2004 15:14:54 -0500 Original-To: tru64-unix-managers@ornl.gov Content-Disposition: inline User-Agent: Mutt/1.5.6+20040722i X-Envelope-From: X-ORNL-Envelope-To: tru64-unix-managers@sws1.ctd.ornl.gov rfc822;tru64-unix-managers@ornl.gov X-Virus-Scanned: clamd / ClamAV version 0.75-1, clamav-milter version 0.75c on oak X-Virus-Status: Clean Xref: main.gmane.org gmane.os.tru64.managers:7841 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7841 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