In message <[EMAIL PROTECTED]> you writ
e:
|On Wed, 24 Apr 1996, Amos Shapira wrote:
|
|> Andrew Stephen <[EMAIL PROTECTED]> wrote:
|> | I have set up a debian mirror on my hdd and was wondering what is
|> | the best way to move it to another partion.
|>
|> The most common way is to do something a-la
|>
|> "cd original-dir; tar cf - . | (cd new-dir; tar xvf -)"
|
|I always use "cp -af sourcedir destdir && rm -rf sourcedir".  It
|preserves ownership, permissions, timestamp etc.  I think this
|only works with GNU cp, which is why most people use the tar
|command...commercial unixes, unlike linux, don't usually come with GNU
|cp.
|
|Is there any reason why the tar command is better than "cp -af"?

Unless GNU cp doesn't know how to handle sparse files and device
inodes, looks like there isn't.  Except for the habit acuired from
years of usage (I startted when "dump | resotore" was the best way
because dump access the partition directly :)

Cheers,

--Amos

--Amos Shapira                      | "Of course Australia was marked for
133 Shlomo Ben-Yosef st.            |  glory, for its people had been chosen
Jerusalem 93 805                    |  by the finest judges in England."
ISRAEL          [EMAIL PROTECTED] |                     -- Anonymous

Reply via email to