Does --track-renames work on higher-level directories?

I've been searching and trying to find an answer but so far I've come up short...

I have my files organized as topdir/middle/hello/world/file.txt but without thinking of the consequences of my backup, I changed it to topdir/middle/goodbye/world/file.txt.

So my question is, will --track-renames realize file.txt is the same, and rename the upper directory accordingly?

Edit: I would hope it doesn't matter, but I'm using Google Drive

Seems to work:

felix@gemini:~$ rclone sync /home/felix/topdir1/ GD:/topdir2 -vv --track-renames --dry-run
2020/06/11 11:27:08 DEBUG : rclone: Version "v1.52.1" starting with parameters ["rclone" "sync" "/home/felix/topdir1/" "GD:/topdir2" "-vv" "--track-renames" "--dry-run"]
2020/06/11 11:27:08 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2020/06/11 11:27:09 DEBUG : fs cache: renaming cache item "GD:/topdir2" to be canonical "GD:topdir2"
2020/06/11 11:27:10 INFO  : Google drive root 'topdir2': Making map for --track-renames
2020/06/11 11:27:10 INFO  : Google drive root 'topdir2': Finished making map for --track-renames
2020/06/11 11:27:10 DEBUG : Google drive root 'topdir2': Waiting for checks to finish
2020/06/11 11:27:10 DEBUG : Google drive root 'topdir2': Waiting for renames to finish
2020/06/11 11:27:10 NOTICE: middle/goodbye/world/hosts: Not moving as --dry-run
2020/06/11 11:27:10 INFO  : middle/hello/world/hosts: Renamed from "middle/goodbye/world/hosts"
2020/06/11 11:27:10 DEBUG : Google drive root 'topdir2': Waiting for transfers to finish
2020/06/11 11:27:10 DEBUG : Waiting for deletions to finish
2020/06/11 11:27:10 INFO  : There was nothing to transfer
2020/06/11 11:27:10 INFO  :
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks:                 2 / 2, 100%
Renamed:                1
Elapsed time:         0.0s

2020/06/11 11:27:10 DEBUG : 7 go routines active

That's on a non crypt remote though as it can compare checksums.

Excellent, exactly what I was looking for and hoping. Thank you!

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