From owner-freebsd-questions@FreeBSD.ORG Thu May 11 01:28:08 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 0309C16A4D7 for ; Thu, 11 May 2006 01:28:08 +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 8CCA343D6E for ; Thu, 11 May 2006 01:28:07 +0000 (GMT) (envelope-from don@lizardhill.com) Received: (qmail 52922 invoked by uid 0); 11 May 2006 01:28:07 -0000 Received: from unknown (HELO mickey) (unknown) by unknown with SMTP; 11 May 2006 01:28:07 -0000 From: "Don O'Neil" To: "'Andy Greenwood'" Date: Wed, 10 May 2006 18:28:06 -0700 Message-ID: <007601c6749a$28057630$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: AcZ0mYxXy2FnpwciTHyi/ogILPdZ6wAAFx2w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: <3ee9ca710605101823p56f2cdd9j4510cbc268448d05@mail.gmail.com> 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 01:28:08 -0000 My man says: -L number --tape-length number Change tapes after writing number * 1024 bytes. Nothing about symbolic links.... Now there is an option --unlink-first and --dereference... Both of which don't copy the links, but unlink or copy the actual source file. Don -----Original Message----- From: Andy Greenwood [mailto:greenwood.andy@gmail.com] Sent: Wednesday, May 10, 2006 6:24 PM To: Don O'Neil Cc: freebsd-questions@freebsd.org Subject: Re: Copying a file system w/ tar - symbolic links not copied right. # man tar specifically, the -L option On 5/10/06, Don O'Neil wrote: > Hi all... > > 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. > > What am I doing wrong here, or is my tar broken? > > _______________________________________________ > 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" >