[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian Mirror



On Thu, 25 Apr 1996, Craig Sanders wrote:

> On Wed, 24 Apr 1996, Amos Shapira wrote:
> 
> > Andrew Stephen <andrews@intrepid.byteline.com.au> wrote:
> > | I have set up a debian mirror on my hdd and was wondering what is
> > | the best way to move it to another partion.
> >
> > The most common way is to do something a-la
> >
> > "cd original-dir; tar cf - . | (cd new-dir; tar xvf -)"
> 
> I always use "cp -af sourcedir destdir && rm -rf sourcedir".  It
> preserves ownership, permissions, timestamp etc.  I think this
> only works with GNU cp, which is why most people use the tar
> command...commercial unixes, unlike linux, don't usually come with GNU
> cp.
> 
> Is there any reason why the tar command is better than "cp -af"?

I have always heard it's because 'cp' copies symlinks as real files, but GNU
cp doesn't seem to do that when using (-af).  Also there is a (-d) option
which is supposed to prevent this behavior.

> 
> Craig


__kmb203@psu.edu_____________________________Debian/GNU__Linux__1.3.77___
"The C Programming Language -- A language which combines the
flexibility of assembly language with the power of assembly language."


Reply to: