From owner-freebsd-questions Thu May 23 14:50:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cerberus.jimz.net (cerberus.jimz.net [64.81.165.68]) by hub.freebsd.org (Postfix) with SMTP id 8CBA737B40F for ; Thu, 23 May 2002 14:50:22 -0700 (PDT) Received: (qmail 4399 invoked by uid 1003); 23 May 2002 21:50:20 -0000 Date: Thu, 23 May 2002 17:50:20 -0400 From: Jim Zajkowski To: dave Cc: freebsd-questions@FreeBSD.org Subject: Re: dump over ssh? Message-ID: <20020523215020.GA25548@jimz.net> References: <003401c20293$836fb760$0200a8c0@satellite> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003401c20293$836fb760$0200a8c0@satellite> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 23, 2002 at 03:53:30PM -0400, dave wrote: > I've got a linux backup server to which i'd like to use dump to dump a > few fbsd 4.5 boxes to it. I really don't want to use rsh, however when i try > to use ssh i get an error that rcmd was unable to complete a socket and that > login failed as the user. I do this with a number of systems, so I have a collection of scripts to handle it. My solution is to have the backup box ssh to the box to be backed up (using ssh public-key authentication), run a dump to standard out, and collect the dump to tape with cstream. Something like: backupbox# ssh target 'dump 0f - / | gzip -fast' | dd if=- of=/dev/nst0 I actually use cstream not dd, but the usage is similar. cstream does double-buffering for me, which I could do with a dd | dd, but this is just easier. The big problem I have is that all the dumps are being done in order, rather than in parallel, so this doesn't work well if you have someone else (eg administrative assistant) swapping the tapes -- my longest backup set takes about 10 hours. For some performance I have ssh configured to try blowfish before 3des or any other crypto, as blowfish is pretty quick. Suprisingly enough, dump is the slowest part of this mess, not the ssh (for my machines, anyway). --Jim -- Jim Zajkowski System Administrator http://www.jimz.net/pgp-pubkey.asc ITCS Contract Services 8A9E 1DDF 944D 83C3 AEAB 8F74 8697 A823 2113 5C53 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message