paul at xciv.org
Fri Nov 23 17:03:06 GMT 2001
Hiten Pandya <hitmaster2k at yahoo.com> wrote:
> i had this type of dying hdd problem with a scsi
> drive... so.. what i did was... use the ol' cp(1)
> command.. which did the trick of copying the stuff
> exactly as it was before....
Just be aware that some cp implementations follow symlinks,
which is not always ideal. ;) When copying trees of files I
normally use the tar trick, and it should preserve all
permissions and timestamps correctly.
(cd /source; tar -cpf - .) | (cd /dest; tar -xvpf -)
It looks like -R cp(1) option in FreeBSD is intelligent
and handles symlinks and special device files properly. :)
More information about the Ukfreebsd