Copy odt file from linux to google doc on google drive

What is the problem you are having with rclone?

I want to copy a .otd file from linux to google drive, converting it to google doc.
I'm getting this error as output:

Failed to copy: can't convert ".odt" to a document with a different export filetype (".docx")

Is this conversion not to be expected or am I doing something wrong?

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

rclone v1.69.1

  • os/version: linuxmint 21 (64 bit)
  • os/kernel: 5.15.0-130-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.24.0
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using?

Google Drive

The command you were trying to run

rclone copy --progress -vv file.odt google_drive:folder_0/folder_1 --drive-import-formats "odt"

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[google_drive]
type = drive
scope = drive
token = XXX

A log from the command that you were trying to run with the -vv flag

2025/03/15 19:34:50 DEBUG : rclone: Version "v1.69.1" starting with parameters ["rclone" "copy" "--progress" "-vv" "file.odt" "google_drive:folder_0/folder_1" "--drive-import-formats" "odt"]
2025/03/15 19:34:50 DEBUG : Creating backend with remote "file.odt"
2025/03/15 19:34:50 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2025/03/15 19:34:50 DEBUG : fs cache: renaming child cache item "file.odt" to be canonical for parent "/home/user/Scrivania/folder/child_folder"
2025/03/15 19:34:50 DEBUG : Creating backend with remote "google_drive:folder_0/folder_1"
2025/03/15 19:34:50 DEBUG : google_drive: detected overridden config - adding "{CpTO7}" suffix to name
2025/03/15 19:34:50 DEBUG : Google drive root 'folder_0/folder_1': 'root_folder_id = XXX' - save this in the config to speed up startup
2025/03/15 19:34:50 DEBUG : fs cache: renaming cache item "google_drive:folder_0/folder_1" to be canonical "google_drive{CpTO7}:folder_0/folder_1"
2025/03/15 19:34:51 DEBUG : file.odt: Need to transfer - File not found at Destination
2025/03/15 19:34:51 ERROR : file.odt: Failed to copy: can't convert ".odt" to a document with a different export filetype (".docx")
2025/03/15 19:34:51 ERROR : Attempt 1/3 failed with 1 errors and: can't convert ".odt" to a document with a different export filetype (".docx")
2025/03/15 19:34:52 DEBUG : file.odt: Need to transfer - File not found at Destination
2025/03/15 19:34:52 ERROR : file.odt: Failed to copy: can't convert ".odt" to a document with a different export filetype (".docx")
2025/03/15 19:34:52 ERROR : Attempt 2/3 failed with 1 errors and: can't convert ".odt" to a document with a different export filetype (".docx")
2025/03/15 19:34:52 DEBUG : file.odt: Need to transfer - File not found at Destination
2025/03/15 19:34:52 ERROR : file.odt: Failed to copy: can't convert ".odt" to a document with a different export filetype (".docx")
2025/03/15 19:34:52 ERROR : Attempt 3/3 failed with 1 errors and: can't convert ".odt" to a document with a different export filetype (".docx")
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.6s
2025/03/15 19:34:52 INFO  : 
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.6s

2025/03/15 19:34:52 DEBUG : 7 go routines active
2025/03/15 19:34:52 NOTICE: Failed to copy: can't convert ".odt" to a document with a different export filetype (".docx")

welcome to the forum,

try to run the command without that flag

without the flag the file is uploaded but in odt format, I would like it in google doc format

Try adding --drive-allow-import-name-change. Make sure that you understand that it can lead to overwriting existing documents.

it worked, thank you very much

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