I'm copying files from my sda to my sdb. sda have read errors on it, which means that when a files is written on a read error block, reading this file provokes several read error which freeze the system.

I would like rsync to skip those files, keeping the old file on sdb intact. No problem, I am prepared to possibly loose my latest files.

Is it possible to skip files with read errors? How can I do?

Thank for any advice.

1 Answer 1


I know of no way for rsync to gracefully recover from hardware errors. Your best bet would be to do a block-level copy of the device with something like ddrescue. The "rescued" copy could then be rsync'd, or used as is.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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