From owner-freebsd-questions@FreeBSD.ORG Tue Aug 1 18:31:35 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 B829016A4E2 for ; Tue, 1 Aug 2006 18:31:35 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5BA643D6E for ; Tue, 1 Aug 2006 18:31:29 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id k71IVRuv006102; Tue, 1 Aug 2006 11:31:28 -0700 (PDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Tue, 1 Aug 2006 14:31:09 -0400 User-Agent: KMail/1.9.3 References: <20060801175209.GA24100@skytracker.ca> <20060801140433.f27bb1cb.wmoran@collaborativefusion.com> In-Reply-To: <20060801140433.f27bb1cb.wmoran@collaborativefusion.com> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608011431.09443.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.3, clamav-milter version 0.88.3 on ns1.jnielsen.net X-Virus-Status: Clean Cc: David Banning Subject: Re: best way to copy from one fbsd box to another 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: Tue, 01 Aug 2006 18:31:35 -0000 On Tuesday 01 August 2006 14:04, Bill Moran wrote: > In response to David Banning : > > I am installing a new server and have to copy many files from old server > > to new. I have connected a windows box to each via samba, and am dragging > > from one to the other via the windows box. > > > > This might seem like a silly question, but what is the way to copy > > -directly- from one fbsd box to another? > > Usually NFS or scp. There are other choices, though. For many situations my favorite is tar+netcat (w/ optional bzip2 compression). On the destination host: cd /some/path nc -l 1234 | tar -xjvf - And on the source host: cd /some/path tar -cjvf - relative/path/to/source/dir | nc destip 1234 If you don't want compression leave out the 'j' flag in both calls to tar. scp is your best bet if you need encryption though (take note of the -r and -C flags). JN