From owner-freebsd-questions@FreeBSD.ORG Sat Jun 24 03:54:08 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A529C16A47B for ; Sat, 24 Jun 2006 03:54:08 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3466043D46 for ; Sat, 24 Jun 2006 03:54:08 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by nz-out-0102.google.com with SMTP id n1so902685nzf for ; Fri, 23 Jun 2006 20:54:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ulcVjmNk3xtRdW0VXm/fGZgfKop8lGsLztB0JeqmBW20yfp3/bKu8MLTth23deEsuVMAdFBGhI51lu+65qJcagm9pJun+1H8+xThutC38jxZk8PGkkNqG6zKn7WSmWQQict8XEONypkESYivrVnhZ+wIoD8+w/qs1+JbUPnhiGk= Received: by 10.36.221.9 with SMTP id t9mr4744576nzg; Fri, 23 Jun 2006 20:54:07 -0700 (PDT) Received: by 10.36.12.11 with HTTP; Fri, 23 Jun 2006 20:54:07 -0700 (PDT) Message-ID: Date: Fri, 23 Jun 2006 20:54:07 -0700 From: "Nikolas Britton" To: "Dan Nelson" In-Reply-To: <20060624023139.GA83209@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060624023139.GA83209@dan.emsphone.com> Cc: FreeBSD Mailing List Subject: Re: help with 'tar|rsh tar' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 03:54:08 -0000 On 6/23/06, Dan Nelson wrote: > In the last episode (Jun 23), Nikolas Britton said: > > I need to backup the /data directory on hostA to /data on hostB, > > about 1TB of data on a gigabit link. Right now I'm using scp but the > > handshake latency and ssh overhead is killing me. > > > > I've looked at many examples of tar|rsh tar and I can't figure it out, > > most of the examples on the net look like this: > > # tar cf - . | rsh hostname dd of=tape-device obs=20b > > # tar -cf -...|rsh ...tar xf -... > > Two quick options even more lightweight than rsh are netcat (base > system) and ttcp (in ports). Usage examples: > > host2$ ttcp -r | tar xvf - > host1$ tar cf - . | ttcp -t host2 > > host2$ nc -l 1234 | tar xvf - > host1$ tar cf - . | nc host2 1234 > Thanks!, but I got rsh going. I first had to edit /etc/hosts.equiv, after that I figured it out: tar cf - . | rsh 192.168.1.242 'cd /data; tar xpvf -' I was thinking tar -f as in file.tar but it's not, you have to cd into the source directory you want to copy... anyways... I'm getting around 30MB/s now... it should be in the 50-60MB/s range... Good enough for now though. Thanks again... -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/