Easy Q: Best way to move a directory tree

From: Guy Dallaire <dallaire_at_total.net>
Date: Wed, 07 May 1997 09:40:37 -0400

Hello,

I have to move a HUGE directory tree (oracle software installation) to a
different file system. I made some preliminary tests and I am not satisfied
with the results. I don't want to ressort to a backup/restore of the
directory.

Here is my problem: The various subdirectories contains symbolic links, I
had problems moving it with mv, got error messages. I also tried with the
following command:

    cd fromdir; tar -cf . | (cd todir; tar xf -)

In this case, the file timestamps changed (when I do an ls -l). Is there a
way to move that directory tree somewhere else and:

        a) Preserve the same file protections
        b) Preserve the files timestamps
        c) Preserve file ownership

Thanks



Guy Dallaire
dallaire_at_total.net

"God only knows if god exists"
Received on Wed May 07 1997 - 16:16:14 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT