From owner-freebsd-questions@FreeBSD.ORG Sat Jun 24 02:31:43 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 45E6316A47B for ; Sat, 24 Jun 2006 02:31:43 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id F016C43D45 for ; Sat, 24 Jun 2006 02:31:42 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k5O2VeUI001509; Fri, 23 Jun 2006 21:31:40 -0500 (CDT) (envelope-from dan) Date: Fri, 23 Jun 2006 21:31:40 -0500 From: Dan Nelson To: Nikolas Britton Message-ID: <20060624023139.GA83209@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 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 02:31:43 -0000 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 -- Dan Nelson dnelson@allantgroup.com