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

Re: Installing pure64 from scratch



Quoting John Goerzen (jgoerzen@complete.org):
> On Wed, Feb 18, 2004 at 04:40:49PM -0800, Dan Helfman wrote:
> > On Wed, 2004-02-18 at 15:56, Josh Hansen wrote:
> > > >How exactly are you copying the files?
> > > >
> > > >  
> > > >
> > > First I extract the tarball using tar -xvjf
> > > Then I enter the directory created and copy the directories using cp -r 
> > > ./* /mnt/debian64
> > >
> > > Perhaps there is a permissions preservation problem?
> > 
> > Quite possibly. Try cp -ar instead.
> 
> Even that is likely not a good choice.  You should either unpack the tar
> directly, or:
> 
> mkdir newpath
> cd oldpath
> tar -cSpf - . | tar -xvSpf - -C /newpath
> 
> cp -a does not, afaik, preserve hard links nor sparse files.

I usually use this for local copies:

mkdir newpath
cd oldpath
find . | cpio -pmvd /newpath



Cheers
  Mike



Reply to: