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.
Author by
Thibaut
Updated on September 18, 2022Comments
-
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?
-
spyle over 7 yearsSee stackoverflow.com/a/27637277 for
--ignore-missing-args
option.
-