Rename "Remote2" files same as to "Remote1"

C:\Users\hunter\Desktop\RcloneUpload\ODGTB Hunted>rclone sync "THD1:/Test/" "ODGTB:/Test/" --track-renames --track-renames-strategy size -vv --dry-run
Error: unknown flag: --track-renames-strategy
Usage:
rclone sync source:path dest:path [flags]

Flags:
--create-empty-src-dirs Create empty source dirs on destination after sync
-h, --help help for sync

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.

2023/07/20 13:57:18 Fatal error: unknown flag: --track-renames-strategy

$ rclone moveto "onedrive:Test/# Unsorted.txt" onedrive:Test/#Unsorted.txt -vv
2023/07/20 15:01:08 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "moveto" "onedrive:Test/# Unsorted.txt" "onedrive:Test/#Unsorted.txt" "-vv"]
2023/07/20 15:01:08 DEBUG : Creating backend with remote "onedrive:Test/# Unsorted.txt"
2023/07/20 15:01:10 DEBUG : fs cache: adding new entry for parent of "onedrive:Test/# Unsorted.txt", "onedrive:Test"
2023/07/20 15:01:10 DEBUG : Creating backend with remote "onedrive:Test/"
2023/07/20 15:01:11 DEBUG : fs cache: renaming cache item "onedrive:Test/" to be canonical "onedrive:Test"
2023/07/20 15:01:11 DEBUG : # Unsorted.txt: Need to transfer - File not found at Destination
2023/07/20 15:01:12 INFO  : # Unsorted.txt: Moved (server-side) to: #Unsorted.txt
2023/07/20 15:01:12 INFO  :
Transferred:   	  114.621 KiB / 114.621 KiB, 100%, 0 B/s, ETA -
Checks:                 1 / 1, 100%
Renamed:                1
Elapsed time:         4.3s

No idea what you are doing wrong

the same here:

rclone sync onedrive:TEST drive:TEST -vv --track-renames --dry-run --track-renames-strategy modtime,size
2023/07/20 15:08:52 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "sync" "onedrive:TEST" "drive:TEST" "-vv" "--track-renames" "--dry-run" "--track-renames-strategy" "modtime,size"]
2023/07/20 15:08:52 DEBUG : Creating backend with remote "onedrive:TEST"
2023/07/20 15:08:52 DEBUG : onedrive: Loaded invalid token from config file - ignoring
2023/07/20 15:08:53 DEBUG : Saving config "token" in section "onedrive" of the config file
2023/07/20 15:08:53 DEBUG : onedrive: Saved new token in config file
2023/07/20 15:08:53 DEBUG : Creating backend with remote "drive:TEST"
2023/07/20 15:08:54 DEBUG : Google drive root 'TEST': 'root_folder_id = 0AGpO07Pd6Q4NUk9PVA' - save this in the config to speed up startup
2023/07/20 15:08:55 INFO  : Google drive root 'TEST': Making map for --track-renames
2023/07/20 15:08:55 INFO  : Google drive root 'TEST': Finished making map for --track-renames
2023/07/20 15:08:55 DEBUG : Google drive root 'TEST': Waiting for checks to finish
2023/07/20 15:08:55 DEBUG : Google drive root 'TEST': Waiting for renames to finish
2023/07/20 15:08:55 NOTICE: # Unsorted.txt: Skipped move as --dry-run is set (size 114.621Ki)
2023/07/20 15:08:55 INFO  : #Unsorted.txt: Renamed from "# Unsorted.txt"
2023/07/20 15:08:55 DEBUG : Google drive root 'TEST': Waiting for transfers to finish
2023/07/20 15:08:55 DEBUG : Waiting for deletions to finish
2023/07/20 15:08:55 INFO  : There was nothing to transfer
2023/07/20 15:08:55 NOTICE:
Transferred:   	  114.621 KiB / 114.621 KiB, 100%, 0 B/s, ETA -
Checks:                 2 / 2, 100%
Renamed:                1
Elapsed time:         3.1s

2023/07/20 15:08:55 DEBUG : 12 go routines active
rclone sync onedrive:TEST drive:TEST -vv --track-renames --dry-run --track-renames-strategy size
2023/07/20 15:09:48 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "sync" "onedrive:TEST" "drive:TEST" "-vv" "--track-renames" "--dry-run" "--track-renames-strategy" "size"]
2023/07/20 15:09:48 DEBUG : Creating backend with remote "onedrive:TEST"
2023/07/20 15:09:49 DEBUG : Creating backend with remote "drive:TEST"
2023/07/20 15:09:49 DEBUG : Google drive root 'TEST': 'root_folder_id = 0AGpO07Pd6Q4NUk9PVA' - save this in the config to speed up startup
2023/07/20 15:09:50 INFO  : Google drive root 'TEST': Making map for --track-renames
2023/07/20 15:09:50 INFO  : Google drive root 'TEST': Finished making map for --track-renames
2023/07/20 15:09:50 DEBUG : Google drive root 'TEST': Waiting for checks to finish
2023/07/20 15:09:50 DEBUG : Google drive root 'TEST': Waiting for renames to finish
2023/07/20 15:09:51 NOTICE: # Unsorted.txt: Skipped move as --dry-run is set (size 114.621Ki)
2023/07/20 15:09:51 INFO  : #Unsorted.txt: Renamed from "# Unsorted.txt"
2023/07/20 15:09:51 DEBUG : Google drive root 'TEST': Waiting for transfers to finish
2023/07/20 15:09:51 DEBUG : Waiting for deletions to finish
2023/07/20 15:09:51 INFO  : There was nothing to transfer
2023/07/20 15:09:51 NOTICE:
Transferred:   	  114.621 KiB / 114.621 KiB, 100%, 0 B/s, ETA -
Checks:                 2 / 2, 100%
Renamed:                1
Elapsed time:         2.7s

you have probably some typo etc.

in general:

use modtime preserving moveto to rename your files and then --track-renames-strategy modtime,size
use web interface to rename files and then --track-renames-strategy size

especially for second option always test with --dry-run

and update your rclone as you are on ancient v1.51.0 from 2020

sup sorry last night it was 11 here so had to go. sure will give it a go.

C:\Users\hunter\Desktop\RcloneUpload>rclone sync "THD1:/Test" "ODGTB:/Test" --track-renames-strategy modtime,size --dry-run -vv
2023/07/21 08:43:58 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "sync" "THD1:/Test" "ODGTB:/Test" "--track-renames-strategy" "modtime,size" "--dry-run" "-vv"]
2023/07/21 08:43:58 DEBUG : Creating backend with remote "THD1:/Test"
2023/07/21 08:43:58 DEBUG : Using config file from "C:\Users\hunter\Desktop\RcloneUpload\rclone.conf"
2023/07/21 08:43:58 DEBUG : THD1: Loaded invalid token from config file - ignoring
2023/07/21 08:43:58 DEBUG : Saving config "token" in section "THD1" of the config file
2023/07/21 08:43:58 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2023/07/21 08:43:58 DEBUG : THD1: Saved new token in config file
2023/07/21 08:43:58 DEBUG : fs cache: renaming cache item "THD1:/Test" to be canonical "THD1:Test"
2023/07/21 08:43:58 DEBUG : Creating backend with remote "ODGTB:/Test"
2023/07/21 08:43:58 DEBUG : ODGTB: Loaded invalid token from config file - ignoring
2023/07/21 08:43:59 DEBUG : Saving config "token" in section "ODGTB" of the config file
2023/07/21 08:43:59 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2023/07/21 08:43:59 DEBUG : ODGTB: Saved new token in config file
2023/07/21 08:44:04 DEBUG : fs cache: renaming cache item "ODGTB:/Test" to be canonical "ODGTB:Test"
2023/07/21 08:44:04 DEBUG : #Unsorted.txt: Need to transfer - File not found at Destination
2023/07/21 08:44:04 DEBUG : OneDrive root 'Test': Waiting for checks to finish
2023/07/21 08:44:04 DEBUG : OneDrive root 'Test': Waiting for transfers to finish
2023/07/21 08:44:04 NOTICE: #Unsorted.txt: Skipped copy as --dry-run is set (size 125.715Ki)
2023/07/21 08:44:04 DEBUG : Waiting for deletions to finish
2023/07/21 08:44:04 NOTICE: # Unsorted.txt: Skipped delete as --dry-run is set (size 125.715Ki)
2023/07/21 08:44:04 NOTICE:
Transferred: 125.715 KiB / 125.715 KiB, 100%, 0 B/s, ETA -
Checks: 1 / 1, 100%
Deleted: 1 (files), 0 (dirs)
Transferred: 1 / 1, 100%
Elapsed time: 6.3s

2023/07/21 08:44:04 DEBUG : 11 go routines active

i got this.
command
rclone sync "THD1:/Test" "ODGTB:/Test" --track-renames-strategy modtime,size --dry-run -vv

so all works now?

hell nah bro it will upload and delete the file with diff name
2023/07/21 08:44:04 NOTICE: #Unsorted.txt: Skipped copy as --dry-run is set (size 125.715Ki)
and
2023/07/21 08:44:04 NOTICE: # Unsorted.txt: Skipped delete as --dry-run is set (size 125.715Ki)

Have you renamed file using moveto?

bro the thing is that i have changed 1000 files name from THD1 remote but not for ODGTB

number of files does not matter. You have to use the right commands.

In your case where two remotes use different hashes changes can be tracked only by files' modtime and size. It looks that whatever renaming method you use it changed files' modtime. So only size is remaining as an option:

rclone sync onedrive:path drive:path --track-renames --track-renames-strategy size

Using size only is dangerous as any other files with the same size can be replaced. This is why testing with --dry-run is recommended.

It might be easier to do this in small batches, e.g.:

rclone sync onedrive:path/path1 drive:path/path1 --track-renames --track-renames-strategy size
rclone sync onedrive:path/path2 drive:path/path2 --track-renames --track-renames-strategy size

C:\Users\hunter\Desktop\RcloneUpload>rclone sync "THD1:/Test" "ODGTB:/Test" --track-renames --track-renames-strategy size --dry-run
2023/07/21 10:40:37 NOTICE: # Unsorted.txt: Skipped move as --dry-run is set (size 125.715Ki)
2023/07/21 10:40:37 NOTICE:
Transferred: 125.715 KiB / 125.715 KiB, 100%, 0 B/s, ETA -
Checks: 2 / 2, 100%
Renamed: 1
Elapsed time: 22.6s
did it work? it doesnot show copy log

Yes it worked. This time it renamed file instead of delete and transfer.

To see full log you have to use -vv option

C:\Users\hunter\Desktop\RcloneUpload>rclone sync "THD1:/Test" "ODGTB:/Test" --track-renames --track-renames-strategy size --dry-run -vv
2023/07/21 10:43:53 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "sync" "THD1:/Test" "ODGTB:/Test" "--track-renames" "--track-renames-strategy" "size" "--dry-run" "-vv"]
2023/07/21 10:43:53 DEBUG : Creating backend with remote "THD1:/Test"
2023/07/21 10:43:53 DEBUG : Using config file from "C:\Users\hunter\Desktop\RcloneUpload\rclone.conf"
2023/07/21 10:43:54 DEBUG : fs cache: renaming cache item "THD1:/Test" to be canonical "THD1:Test"
2023/07/21 10:43:54 DEBUG : Creating backend with remote "ODGTB:/Test"
2023/07/21 10:43:56 DEBUG : fs cache: renaming cache item "ODGTB:/Test" to be canonical "ODGTB:Test"
2023/07/21 10:43:57 INFO : OneDrive root 'Test': Making map for --track-renames
2023/07/21 10:43:57 INFO : OneDrive root 'Test': Finished making map for --track-renames
2023/07/21 10:43:57 DEBUG : OneDrive root 'Test': Waiting for checks to finish
2023/07/21 10:43:57 DEBUG : OneDrive root 'Test': Waiting for renames to finish
2023/07/21 10:43:57 NOTICE: # Unsorted.txt: Skipped move as --dry-run is set (size 125.715Ki)
2023/07/21 10:43:57 INFO : #Unsorted.txt: Renamed from "# Unsorted.txt"
2023/07/21 10:43:57 DEBUG : OneDrive root 'Test': Waiting for transfers to finish
2023/07/21 10:43:57 DEBUG : Waiting for deletions to finish
2023/07/21 10:43:57 INFO : There was nothing to transfer
2023/07/21 10:43:57 NOTICE:
Transferred: 125.715 KiB / 125.715 KiB, 100%, 0 B/s, ETA -
Checks: 2 / 2, 100%
Renamed: 1
Elapsed time: 3.8s

2023/07/21 10:43:57 DEBUG : 7 go routines active
yup it did......YESS but why it did not work before?
so we have to use -track-renames --track-renames-strategy size?

It always worked. You were just making some mistakes.

There are two options:

  1. use modtime preserving moveto to rename your files and then --track-renames-strategy modtime,size
  2. use web interface to rename files and then --track-renames-strategy size

With option 2 you have to be very careful as many other files can be renamed too - and not ones you want.

ahhh...thankssss bro.

sorry to disturb but is there a command to like use sync and rename files but not upload. like just rename like any command like max_upload or something.

sorry to disturb but is there a command to like use sync and rename files but not upload. like just rename like any command like max_upload or something.

--bwlimit 10M

is i guess.

I do not understand. Could you explain what you want to achieve?

like i don;t want to upload anything just rename using rclone sync and track name.
will this work?
rclone sync "THD1:/" "ODGTB:/" --track-renames --track-renames-strategy size --bwlimit 0M -vv -P