Python that converts cp -R io error output into a bash script with ddrescue commands