From owner-freebsd-questions Wed Nov 18 12:14:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA00280 for freebsd-questions-outgoing; Wed, 18 Nov 1998 12:14:13 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA00253 for ; Wed, 18 Nov 1998 12:14:08 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id MAA24422; Wed, 18 Nov 1998 12:13:28 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Date: Wed, 18 Nov 1998 12:13:28 -0800 (PST) From: Doug White To: Michael Richards cc: questions@FreeBSD.ORG Subject: Re: Backing up via rdump using ssh In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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