Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2006 18:28:06 -0700
From:      "Don O'Neil" <don@lizardhill.com>
To:        "'Andy Greenwood'" <greenwood.andy@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Copying a file system w/ tar - symbolic links not copied right.
Message-ID:  <007601c6749a$28057630$0300020a@mickey>
In-Reply-To: <3ee9ca710605101823p56f2cdd9j4510cbc268448d05@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <don@lizardhill.com> 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"
>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007601c6749a$28057630$0300020a>