Why rclone says that file was renamed?

What is the problem you are having with rclone?

I’m moving a new version of a file to a remote that has an old version. In the progress bar rclone claims that the file was renamed but what actually happened is that the new file was moved and the old one was deleted. Then what is renamed in this case?

Run the command 'rclone version' and share the full output of the command.

rclone v1.58.0

  • os/version: Microsoft Windows 10 Education 1909 (64 bit)
  • os/kernel: 10.0.18363.1734 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.17.8
  • go/linking: dynamic
  • go/tags: cmount

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone move gdrive2:file.txt onedrive: -P -vv

A log from the command with the -vv flag

2022/04/01 11:35:36 DEBUG : rclone: Version "v1.58.0" starting with parameters ["rclone" "move" "gdrive2:file.txt" "onedrive:" "-P" "-vv"]
2022/04/01 11:35:36 DEBUG : Creating backend with remote "gdrive2:file.txt"
2022/04/01 11:35:36 DEBUG : Using config file from "C:\\.config\\rclone\\rclone.conf"
2022/04/01 11:35:37 DEBUG : fs cache: adding new entry for parent of "gdrive2:file.txt", "gdrive2:"
2022/04/01 11:35:37 DEBUG : Creating backend with remote "onedrive:"
2022-04-01 11:35:38 DEBUG : file.txt: Sizes differ (src 153 vs dst 154)
2022-04-01 11:35:38 DEBUG : file.txt: Starting multipart upload
2022-04-01 11:35:39 DEBUG : file.txt: Uploading segment 0/153 size 153
2022-04-01 11:35:40 INFO  : file.txt: Copied (replaced existing)
2022-04-01 11:35:40 INFO  : file.txt: Deleted
Transferred:            153 B / 153 B, 100%, 76 B/s, ETA 0s
Checks:                 2 / 2, 100%
Deleted:                1 (files), 0 (dirs)
Renamed:                1
Transferred:            1 / 1, 100%
Elapsed time:         4.6s
2022/04/01 11:35:40 INFO  :
Transferred:            153 B / 153 B, 100%, 76 B/s, ETA 0s
Checks:                 2 / 2, 100%
Deleted:                1 (files), 0 (dirs)
Renamed:                1
Transferred:            1 / 1, 100%
Elapsed time:         4.6s

2022/04/01 11:35:40 DEBUG : 9 go routines active

I'm not quite sure I'm following as it you copied file.txt which already existed on the remote and rclone replaced it.

That all looks normal/correct.

What were you expecting to happen that did not?

@Animosity022 I think Gabboman is curious about this line in the stats:

Can you explain? (I can't without testing/debugging)

That's just normal output when you move a file to my knowledge.

felix@gemini:~$ rclone delete GD:hosts
rclone move hostfelix@gemini:~$ rclone move hosts GD: -vv
2022/04/01 09:47:37 DEBUG : Setting --config "/opt/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/opt/rclone/rclone.conf"
2022/04/01 09:47:37 DEBUG : rclone: Version "v1.58.0" starting with parameters ["rclone" "move" "hosts" "GD:" "-vv"]
2022/04/01 09:47:37 DEBUG : Creating backend with remote "hosts"
2022/04/01 09:47:37 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2022/04/01 09:47:37 DEBUG : fs cache: adding new entry for parent of "hosts", "/home/felix"
2022/04/01 09:47:37 DEBUG : Creating backend with remote "GD:"
2022/04/01 09:47:37 DEBUG : Google drive root '': 'root_folder_id = 0AGoj85v3xeadUk9PVA' - save this in the config to speed up startup
2022/04/01 09:47:37 DEBUG : hosts: Need to transfer - File not found at Destination
2022/04/01 09:47:38 DEBUG : hosts: md5 = 955e0c52d3f6ec64f3c23103f4036985 OK
2022/04/01 09:47:38 INFO  : hosts: Copied (new)
2022/04/01 09:47:38 INFO  : hosts: Deleted
2022/04/01 09:47:38 INFO  :
Transferred:   	        189 B / 189 B, 100%, 0 B/s, ETA -
Checks:                 2 / 2, 100%
Deleted:                1 (files), 0 (dirs)
Renamed:                1
Transferred:            1 / 1, 100%
Elapsed time:         1.2s

2022/04/01 09:47:38 DEBUG : 5 go routines active

What's the actual problem or is that is the entire question?

I can confirm even with local to local move, so I guess "Renamed" is just another word for "Moved".

Thanks, that is what I meant.

The problem is that the word "Renamed" seems misleading for the user if nothing is being renamed. Maybe, like @Ole said, the word "Moved" fit better in this case.

So that would be a question for @ncw as I don't mind the word but he picked it :slight_smile:

This was the commit:

fs: add renames statistic for file and directory renames · rclone/rclone@b5f1beb (github.com)

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