Rename and sync

This may have been answered but I didn’t see it. What happens if I rename a file in a directory and then sync? Will it rename it on the remote or will it delete it on the remote and upload the newly named one? I thought it might possible realize they have the same hash and rename but wasn’t sure. Also, I’m sure crypt would cause issues if that were the case.

1 Like

delete and re-upload.

That is correct.

There is an issue to do rename detection https://github.com/ncw/rclone/issues/888 - please add your support to the issue if interested.

1 Like

I’m on v1.38 and have renamed a couple directories locally, then ran sync. rclone has been copying the files anew to the remote (Google Drive). Issue #888 is allegedly fixed though - what am I missing?

This has been implemented in the –track-renames flag.

1 Like