Don't copy files that cause an input/output error

7,371

rsync has options --delete and --ignore-errors that together might have the outcome you want.

Share:
7,371
Thibaut
Author by

Thibaut

Updated on September 18, 2022

Comments

  • Thibaut
    Thibaut over 1 year

    When copying files from a faulty hd with cp, rsync, or scp, the faulty files which can't be read anymore are also partly copied to the destination directory.

    Is there an option to automatically skip or delete files on the destination drive causing an input/output error while copying?