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

Re: [cobalt-users] Reducing / directory



On Tuesday, January 7, 2003, at 01:22  PM, Edward R. Milstein wrote:

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..

He could also use the USR2Home script that does it the right way and walks you through the process.

http://www.firstwebspace.com/raq/usr2home.sh

HTH,
j