I want to copy a bunch of folders recursively. However, I don't want one error preventing the copy from finishing. Is there any way to do a recursive copy(cp -R), ignoring (but logging) all errors produced? I'm on Mac OS X, but I assume the answer would be the same for *nixes.

link|improve this question
feedback

2 Answers

up vote 7 down vote accepted

Hey, you might want to check out rsync ( http://www.samba.org/ftp/rsync/rsync.html ). It can do a more reliable job and only copy the files that didn't copy the first time:

rsync -vza --progress /source/ /destination/

Good luck!

link|improve this answer
feedback

Found the answer: ditto(1)

link|improve this answer
Please share it here so that future people can learn.. – James Polley Jan 5 '10 at 10:21
I did share the answer... it is ditto. Syntax: ditto <src dirs> <dst dir> – Mike Jan 5 '10 at 10:25
Odd; when I first viewed this it was a broken image. – James Polley Jan 5 '10 at 10:47
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.