File name too long when copying files

What is the problem you are having with rclone?

I'm trying to copy files from GDrive to Dropbox but some files aren't being copied and are giving the error "file name too long".

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

rclone v1.62.2

  • os/version: Microsoft Windows Server 2022 Datacenter 21H2 (64 bit)
  • os/kernel: 10.0.20348.1726 Build 20348.1726.1726 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Google Drive to Dropbox

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

rclone copy HAE: DBE:  --transfers 20 -P 

The rclone config contents with secrets removed.

[HA]
type = drive
client_id = xx.apps.googleusercontent.com
client_secret = xx
scope = drive
token = {"access_token":"xx","token_type":"Bearer","refresh_token":"xx","expiry":"2023-05-30T16:13:00.1662537Z"}
root_folder_id = 0ANXlyGyYf_nkUk9PVA

[HAE]
type = crypt
remote = HA:E
filename_encryption = standard
directory_name_encryption = true
password = xx
password2 = xx


[DB]
type = dropbox
token = {"access_token":"xx","token_type":"bearer","refresh_token":"xx","expiry":"2023-05-30T19:40:26.2854225Z"}

[DBE]
type = crypt
remote = DB:
password = yy
password2 = xx

A log from the command with the -vv flag

Transferred:   	          0 B / 470.023 MiB, 0%, 0 B/s, ETA -
Errors:               663 (no need to retry)
Checks:            424898 / 425433, 100%
Transferred:            0 / 298, 0%
Elapsed time:     14m41.2s
Checking:
 * sheffield-bkup/EC2-Par…1.0.v20180713-1646.jar: checking
 * sheffield-bkup/EC2-Par….14.v20190123-1619.jar: checking
 * sheffield-bkup/EC2-Par….10.v20190123-2214.jar: checking
Transferring:
 * sheffield-bkup/Courses…BB1D330925571BE4).html: transferring
 * sheffield-bkup/Courses…8594F03729F47311).html: transferring
 * sheffield-bkup/Courses…BB1D330925571BE4).html: transferring
 * sheffield-bkup/Courses…113A8F225E89F5FD).html: transferring
 * sheffield-bkup/Courses…AC4D192D629A3E5A).html: transferring
 * sheffield-bkup/Courses…393ED74E22A0450D).html: transferring
 * sheffield-bkup/Courses…AB318968AEDE1859).html: transferring
 * sheffield-bkup/Courses…BAB318968AEDE1859.html: transferring
 * sheffield-bkup/Courses…8393ED74E22A0450D.html: transferring
 * sheffield-bkup/Courses…AB318968AEDE1859).html: transferring
 * sheffield-bkup/Courses…393ED74E22A0450D).html: transferring
 * sheffield-bkup/Courses…AB318968AEDE1859).html: transferring
 * sheffield-bkup/Courses…393ED74E22A0450D).html: transferring
 * sheffield-bkup/Courses…AB318968AEDE1859).html:  0% /37.608Ki, 0/s, -
 * sheffield-bkup/Courses…393ED74E22A0450D).html: transferring
 * sheffield-bkup/Courses…AC4D192D629A3E5A).html: transferring
 * sheffield-bkup/Courses…F9E14D1AC4D192D62.html: transferring
 * sheffield-bkup/Courses…AC4D192D629A3E5A).html: transferring
 * sheffield-bkup/Courses…14D1AC4D192D629A3.html: transferring
 * sheffield-bkup/Courses…AC4D192D629A3E5A).html: transferring
2023-06-01 17:54:50 ERROR : sheffield-bkup/Courses/New/cambridge-computer-science-602-courses/clustering_mohammed-j--zaki--rensselaer-polytechnic-institute--new-york--wagner-meira--jr--universidade-federal-de-minas-gerais--brazil_(book-149B79A5A9DB3E7BAB318968AEDE1859).html: Failed to copy: file name too long

check latest posts on the forum - the issue is repeating - you will find answers easy

1 Like

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