Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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