[geeks] Quickest way
    Jonathan C. Patschke 
    jp at celestrion.net
       
    Wed Oct  8 13:03:09 CDT 2003
    
    
  
On Wed, 8 Oct 2003, Andrew Weiss wrote:
> What is the quickest way to move a bunch of files from /opt/sfw to
> /usr/sfw on two separate partitions preserving all permissions in
> Solaris 9.
(in Bourne/Korn shells)
mkdir -p /usr/sfw
cd /opt/sfw
tar cpf - . | ( cd /usr/sfw && tar xpvf - )
> For some reason I seem to think cp will crash and tar won't quite
> work.
What is tar doing incorrectly?
> Do I need dump/restore?
You -can- use ufsdump/ufsrestore, but tar is generally faster for this
sort of thing.
-- 
Jonathan Patschke   )  "Gamer weenies...are the sludge at the bottom
Elgin, TX          (    of the user swamp."           --Gary Nichols
    
    
More information about the geeks
mailing list