From owner-freebsd-questions@FreeBSD.ORG Thu May 11 20:40:34 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 906EB16A430 for ; Thu, 11 May 2006 20:40:34 +0000 (UTC) (envelope-from don@lizardhill.com) Received: from bigbird.whtech.com (bigbird.whtech.com [64.125.72.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 51C8043D5D for ; Thu, 11 May 2006 20:40:34 +0000 (GMT) (envelope-from don@lizardhill.com) Received: (qmail 1390 invoked by uid 0); 11 May 2006 20:40:27 -0000 Received: from unknown (HELO mickey) (unknown) by unknown with SMTP; 11 May 2006 20:40:27 -0000 From: "Don O'Neil" To: "'Philip Hallstrom'" Date: Thu, 11 May 2006 13:40:33 -0700 Message-ID: <019901c6753b$268c0a70$0300020a@mickey> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 thread-index: AcZ1Ov4zZwaD44XpRBq0UTt1oFP6mQAABg8A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: <20060511142755.M89614@bravo.pjkh.com> 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 20:40:35 -0000 I will... Thanks to all for helping... Still weird what's happening though! -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Philip Hallstrom Sent: Thursday, May 11, 2006 12:29 PM To: Don O'Neil Cc: freebsd-questions@freebsd.org Subject: RE: Copying a file system w/ tar - symbolic links not copied right - More info > Well... I'm moving it from one file system to another of different > sizes, that's the main reason. Dump won't care about that... dd would, but dd isn't right for this anyway... I'd give dump a try. > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Philip > Hallstrom > Sent: Thursday, May 11, 2006 10:35 AM > To: Don O'Neil > Cc: freebsd-questions@freebsd.org > Subject: Re: Copying a file system w/ tar - symbolic links not copied > right > - More info > >> 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"