Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 1998 12:13:28 -0800 (PST)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Michael Richards <miker@scifair.acadiau.ca>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Backing up via rdump using ssh
Message-ID:  <Pine.BSF.4.03.9811181209150.14521-100000@resnet.uoregon.edu>
In-Reply-To: <Pine.BSF.3.96.981118034644.2797A-100000@scifair.acadiau.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 Nov 1998, Michael Richards wrote:

> Is there a known way of backing up with rdump and ssh?
> 
> It appears to use rsh, although it makes the connection via rcmd. I have
> been enabling rsh, running backup and then disabling it, but that is a
> real pain.
> 
> Maybe there is something nifty that could be done by piping the output of
> rdump into ssh... Someone must have figured this out by now...

Actually, we have a script hacked up to do this without replacing rsh.

It goes something like this:
#!/bin/sh -

ssh-add || exit 1

ssh tapeserver mt rewind || exit 1

blksize=50

for i in / /var /usr /usr1; do
	dump 0uBbf 2000000 $blksize - $i | ssh tapeserver "team 50k 16
>/dev/nrst0"
done

ssh tapeserver mt rewind || exit 1

Of course you should have RSA keys set up and installed the 'team' port.  
The ssh-add will take care of proxying your passphrase.  Team is a
buffering process, tune the blocksizes for best performance.  If the
machines are slow you might rebuild sshd with the 'none' encryption type
and change the ssh command lines to 'ssh -c none'.  Lastly, make sure the
dump blocksize and #blocks/tape numbers match your tape drive (ours is for
a 2GB drive).

Doug White                               
Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9811181209150.14521-100000>