Another method of file copying via the Terminal
Jun 29, '02 11:03:24AM
Contributed by: Anonymous
I tried to copy most of my disk from my internal HD to an external Firewire using the Finder in X. It seemed to be slow, slowing down the system too, and error prone on files with special characters in their names. So I went and did the following:
- Open up Terminal
- Change into the directory you want to copy:
cd /dir/to/copy/from
- Execute this command:
find . -print | cpio /place/where/you/want/to/copy
I found this to be a lot more reliable. It does not slow the system down, and copies absolutly everything, whereas tar may not.
[Editor's note: I haven't used cpio, and I'm not sure what it may or may not do with files which contain resource forks.]
Comments (4)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20020629110324498