Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.