From owner-freebsd-questions@FreeBSD.ORG Thu May 11 17:31:53 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 D246D16A485 for ; Thu, 11 May 2006 17:31:53 +0000 (UTC) (envelope-from freebsd@philip.pjkh.com) Received: from bravo.pjkh.com (bravo.pjkh.com [72.36.232.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FF4343D53 for ; Thu, 11 May 2006 17:31:53 +0000 (GMT) (envelope-from freebsd@philip.pjkh.com) Received: from bravo.pjkh.com (bravo.pjkh.com [72.36.232.219]) by bravo.pjkh.com (Postfix) with ESMTP id 7255813C7E5; Thu, 11 May 2006 12:34:41 -0500 (CDT) Received: by bravo.pjkh.com (Postfix, from userid 1000) id 4C0CF13C7E3; Thu, 11 May 2006 12:34:41 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by bravo.pjkh.com (Postfix) with ESMTP id 48B8D13C404; Thu, 11 May 2006 12:34:41 -0500 (CDT) Date: Thu, 11 May 2006 12:34:41 -0500 (CDT) From: Philip Hallstrom To: Don O'Neil In-Reply-To: <03a501c6751a$c78bb860$0300020a@mickey> Message-ID: <20060511123100.C76077@bravo.pjkh.com> References: <03a501c6751a$c78bb860$0300020a@mickey> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-questions@freebsd.org Subject: Re: Copying a file system w/ tar - symbolic links not copied right - More info 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 17:31:56 -0000 > Hi all... > > Ok... More info for the puzzle..... > > I'm trying to move a file system from one disk to another, and when I do > this: > > tar cf - /source/* | ( cd /destination && tar xfv - ) > > It copies all the files, but the symbolic links are copied as files of 0 > length, rather than re-established as links. > > BUT > > When I just: > > tar -cf file.tar /source/* > > And then: > > tar -xf file.tar > > Then the symbolic links are made correctly.... Any reason why this should > work and not the piped version for 'all in one' copying? If it's an actual filesystem why not use dump/restore? Otherwise I'm not sure, but you might also want to add in -pS to handle permissions and sparse files as well... -philip