From owner-freebsd-questions@FreeBSD.ORG Thu May 11 02:01:07 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 3F6C716A402 for ; Thu, 11 May 2006 02:01:07 +0000 (UTC) (envelope-from MTaylor@bytecraft.com.au) Received: from wolf.bytecraft.au.com (wolf.bytecraft.au.com [203.39.118.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5185943D45 for ; Thu, 11 May 2006 02:01:05 +0000 (GMT) (envelope-from MTaylor@bytecraft.com.au) Received: from localhost (localhost [127.0.0.1]) by wolf.bytecraft.au.com (8.12.11/8.12.11) with ESMTP id k4B212pj064436; Thu, 11 May 2006 12:01:02 +1000 (EST) (envelope-from MTaylor@bytecraft.com.au) Received: from wolf.bytecraft.au.com ([127.0.0.1]) by localhost (wolf.bytecraft.au.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 63951-03-3; Thu, 11 May 2006 02:01:02 +0000 (GMT) Received: from svmarshal.bytecraft.au.com ([10.0.0.4]) by wolf.bytecraft.au.com (8.12.11/8.12.11) with ESMTP id k4B20r4M064410; Thu, 11 May 2006 12:00:54 +1000 (EST) (envelope-from MTaylor@bytecraft.com.au) Received: from svmailmel.bytecraft.internal (Not Verified[10.0.0.24]) by svmarshal.bytecraft.au.com with MailMarshal (v5, 0, 3, 78) id ; Thu, 11 May 2006 12:00:53 +1000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Thu, 11 May 2006 12:00:54 +1000 Message-ID: <04E232FDCD9FBE43857F7066CAD3C0F117C995@svmailmel.bytecraft.internal> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Copying a file system w/ tar - symbolic links not copied right. Thread-Index: AcZ0mbnAy8bMNKk+SaWiSuq3aPAh2gABMVNg From: "Murray Taylor" To: "Andy Greenwood" , "Don O'Neil" 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 02:01:07 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org=20 > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of=20 > Andy Greenwood > Sent: Thursday, 11 May 2006 11:24 AM > To: Don O'Neil > Cc: freebsd-questions@freebsd.org > Subject: Re: Copying a file system w/ tar - symbolic links=20 > not copied right. >=20 > # man tar >=20 > specifically, the -L option >=20 > On 5/10/06, Don O'Neil wrote: > > Hi all... > > > > I'm trying to move a file system from one disk to another,=20 > and when I=20 > > do > > this: > > > > tar cf - /source/* | ( cd /destination && tar xfv - ) > > > > It copies all the files, but the symbolic links are copied=20 > as files of=20 > > 0 length, rather than re-established as links. > > > > What am I doing wrong here, or is my tar broken? > > to preserve symlinks you need to use cpio specifically the -p and -l options man cpio It is a bit of a read .... Murray Taylor Special Projects Engineer Bytecraft Systems P: +61 3 8710 2555 F: +61 3 8710 2599 D: +61 3 9238 4275 E: mtaylor@bytecraft.com.au=20 -- "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." =20 Albert Einstein=20 --=20 --------------------------------------------------------------- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material.=20 E-mails may not be secure, may contain computer viruses and may be corrupted in transmission. Please carefully check this e-mail (and any attachment) accordingly. No warranties are given and no liability is accepted for any loss or damage caused by such matters. --------------------------------------------------------------- ***This Email has been scanned for Viruses by MailMarshal.***