Remove log file if "There was nothing to transfer"

Title says it all. How to automatically remove a log file if "There was nothing to transfer" when a --log-file flag was specified in a rclone command?

Does this feature exist? If not, can it be implemented?

I don't know any options that will do this directly, but by using option --error-on-no-transfer you can check for exit code 9 using a shell chain command or a small script and achieve this.

1 Like

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