- Mar 22, 2001
- 2,175
- 5
- 81
I'm wondering if any one of you know of a way to only copy files that don't produce errors via cp or another command? I'm trying to save files from a RAID array in which a portion of the files became corrupt. When I invoke the cp command it copies everything while the corrupted files throws errors (i.e. input/output errors, bad addresses etc...). I'm wondering if there's a way to exclude the files that throws errors from the destination directory.