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

Re: [cobalt-users] Copying Files



Jay Fesco wrote:
> 
> Hi All.
> 
> I need to copy a files to my /usr/lib directory from my local machine.
> 
> Whats the best way to do this?
> 
> Regards.
> 
> Mark

Don't use "cp" as it will not preserve symbolic links and fill your disk
unnecessarily.

I prefer to use tar to copy directory trees.

As in...

mkdir /home/tmp/lib_backup
cd /usr/lib
tar -cf - * (cd /home/tmp/lib_backup; tar -xvf -)

> Get Webmin (www.webmin.com).

No thanks, I prefer the Cobalt admin UI.  


	-- Will

-- 
Will DeHaan
Software Engineer              will.dehaan@xxxxxxx
Sun Cobalt Server Appliances.  Sun Microsystems, Inc.