Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Moving a Directory Across File Systems -- Unix

RE: Moving a Directory Across File Systems -- Unix

From: John Kanagaraj <john.kanagaraj_at_hds.com>
Date: Fri, 09 Aug 2002 17:03:23 -0800
Message-ID: <F001.004B1368.20020809170323@fatcity.com>


> kwikhak:
>
> <shut down oracle>
> cd $srcdir;
> ls -ld $destdir; # convince yourself it exists.
> find . | cpio -pdv $destdir;
> <eyeball the results, if it seems clean then
> fry $destdir and symlink the results back>.

I would use 'find . | cpio -pdlmv $destdir (note use of 'l' flag will make sure that linked files remain linked. Otherwise linked files may get physically copied, resulting in broken links...

John

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: John Kanagaraj
  INET: john.kanagaraj_at_hds.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Aug 09 2002 - 20:03:23 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US