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

RE: [cobalt-users] Reducing / directory



> 
> I'm about to reduce the size of / directory by the following:
> 
> cp -r /usr/doc /home/doc
> cp -r /usr/man /home/man
> cp -r /usr/X11R6 /home/X11R6
> cp -r /usr/openv /home/openv

I know it has been discussed before and I am surprised no one has
responded as of yet but moving files from one place to another is best
done with a program that is more respectful of the various file types
than cp..

The only time this is not true is when moving files within the same file
system and than mv is most efficient..

Try 

% cd /usr/doc ; tar cf - . | ( cd /home/doc ; tar xf - )

Of course /home/doc needs to already exist...

This will do the 'right' thing with sparse files, links, etc etc..

-ed-