From owner-freebsd-questions@FreeBSD.ORG Thu May 11 20:31:14 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 D326016A6D3 for ; Thu, 11 May 2006 20:30:50 +0000 (UTC) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FA5F447E5 for ; Thu, 11 May 2006 20:04:11 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.13.6+Sun/8.12.2) with ESMTP id k4BK4AfV021805; Thu, 11 May 2006 16:04:10 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.13.6+Sun/8.12.2/Submit) id k4BK4AAr021804; Thu, 11 May 2006 16:04:10 -0400 (EDT) From: Jerry McAllister Message-Id: <200605112004.k4BK4AAr021804@clunix.cl.msu.edu> To: don@lizardhill.com (Don O'Neil) Date: Thu, 11 May 2006 16:04:10 -0400 (EDT) In-Reply-To: <049201c67525$dc159700$0300020a@mickey> X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Copying a file system w/ tar - symbolic links not copied right. 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: Thu, 11 May 2006 20:31:32 -0000 > > I've tried both the BSD and GNU tars, I get the same results on both. It's > very strange. > > When I add the B option, no different.... I used: > > tar cf - /array01/* | ( cd /mnt/disk01 && tar xfvBp - ) > > Maybe this is something specific to 4.11? > > Here's what happens: > > Source file: > > lrwxrwxrwx 1 root wheel 21 Feb 19 03:05 apache.log -> > /var/shc/apache/logs/ > > Destination file created on the tar backup: > > ---------- 1 root wheel 0 May 11 11:02 apache.log > > Some have suggested using dump/restore. The problem with dump/restore is > that I can't do it across the network and the file systems need to match. > The whole point is to move these files/directories from one server to > another to a volume with a LOT more space on a RAID array. I used to do it over the net regularly with dump/restore. Just take advantage of the pipe ability. Since the other system has so much room, just pipe the dump file over there and unroll it with restore on the other machine as you please or just leave it in a dump file if you don't want. ////jerry