Disable removing copied file on IO error

when rclone stop du to an IO Error, it deletes the file. how can i tell rclone to not deleting the file even if it is not complete ?
Thank you

here is the command and the last log whith the error. it runs on Debian 9 64bit,
thank you

2019/12/02 15:23:20 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "copy" "--multi-thread-streams=1" "--drive-pacer-min-sleep=2s" "--retries=1" "--low-level-retries=1" "--retries-sleep=21s" "--log-level" "DEBUG" "--log-file" "rclone_download.02-12-19-15-23-19.log" "remote:netcenter.tc" "/DAVID/"]
...
....
....
2019/12/03 13:31:16 DEBUG : netcenter.tc: Reopening on read failure after 72958608448 bytes: retry 1/1: unexpected EOF
2019/12/03 13:31:16 DEBUG : netcenter.tc: Reopen failed after 72958608448 bytes read: failed to reopen: too many retries
2019/12/03 13:31:16 NOTICE: netcenter.tc: Removing partially written file on error: unexpected EOF
2019/12/03 13:31:19 ERROR : netcenter.tc: Failed to copy: unexpected EOF
2019/12/03 13:31:19 ERROR : Attempt 1/1 failed with 3 errors and: unexpected EOF
2019/12/03 13:31:32 INFO :
Transferred: 67.948G / 67.948 GBytes, 100%, 894.447 kBytes/s, ETA 0s
Errors: 3 (retrying may help)
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 22h7m36.5s

There isn't a way of doing this at the moment I don't think (I had a look through the source).

What you could do is hardlink the file while it is copying then rclone won't delete the hardlink.

Why did you set "--low-level-retries=1"? - That is why rclone stopped instead of re-opening the file and having another go.

Ok, thank you for your answer. i will try with more low-level-retries and a hardlink, thank you very much

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.