Hello Everyone !
What is the problem you are having with rclone?
I’m trying to sync my shared Google Workspace Drive to an external hard drive.
I need to sync only google-type documents (gdoc, gsheet, gslides...) and convert them to Microsoft-type documents while syncing.
So for example /pathToGoogleDrive/test.gdoc would need to be copied to /externalHDD/test.docx
But all google documents are excluded by rclone, it seems I can’t find out why.
Run the command 'rclone version' and share the full output of the command.
rclone v1.57.0
- os/version: Microsoft Windows 10 Pro 2009 (64 bit)
- os/kernel: 10.0.19042.1526 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.17.2
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync --progress -vv --include "{*.gsheet,*.gdoc,*.gslides,*gform}" "SharedDrive:/" "K:\Backup" --drive-export-formats=docx,xlsx,pptx --drive-server-side-across-config
The rclone config contents with secrets removed.
[SharedDrive]
type = drive
client_id = XXXXXXXXXXXXXXXXX
scope = drive.readonly
skip_checksum_gphotos = true
client_secret = XXXXXXXXXXXXXX
token = {"access_token":"XXXXXXXXXXXX","token_type":"Bearer","refresh_token":"XXXXXXXXX-XXXXXXXXXX","expiry":"2022-02-12T11:17:07.4124529+01:00"}
team_drive = YYYYYYYYYYY
root_folder_id =
A log from the command with the -vv
flag
2022/02/12 10:48:55 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "sync" "--progress" "--include" "{*.gsheet,*.gdoc,*.gslides,*.gdraw,*.gtable,*.gform}" "SharedDrive:/" "K:\\Just_g_docs\\TEST_DIRECTORY" "-vv" "--drive-server-side-across-configs"]
2022/02/12 10:48:55 DEBUG : Creating backend with remote "SharedDrive:/"
2022/02/12 10:48:55 DEBUG : Using config file from "C:\\Users\\Megaport\\Downloads\\rclone-v1.57.0-windows-amd64\\rclone-v1.57.0-windows-amd64\\rclone.conf"
2022/02/12 10:48:55 DEBUG : SharedDrive: detected overridden config - adding "{Db_Y9}" suffix to name
2022/02/12 10:48:55 DEBUG : fs cache: renaming cache item "SharedDrive:/" to be canonical "SharedDrive{Db_Y9}:"
2022/02/12 10:48:55 DEBUG : Creating backend with remote "K:\\Just_g_docs\\TEST_DIRECTORY"
2022/02/12 10:48:55 DEBUG : fs cache: renaming cache item "K:\\Just_g_docs\\TEST_DIRECTORY" to be canonical "//?/K:/Just_g_docs/TEST_DIRECTORY"
2022-02-12 10:48:56 DEBUG : Listing .docx: Excluded
2022-02-12 10:48:57 DEBUG : 2021 10 04 - BOARD #5/Company_BOARD 2021 10 04 v0.1.pptx: Excluded
2022-02-12 10:48:57 DEBUG : 2021 10 11 - BOARD #6/Company_BOARD 2021 10 11 vF.pptx: Excluded
2022-02-12 10:48:57 DEBUG : 2021 09 06 - BOARD #1/Company_BOARD 2021 09 06 v0.1.pptx: Excluded
2022-02-12 10:48:57 DEBUG : 2021 09 20 - BOARD #3/Company_BOARD 2021 09 20 v0.2.pptx: Excluded
2022-02-12 10:48:57 DEBUG : Local file system at //?/K:/Just_g_docs/TEST_DIRECTORY: Waiting for checks to finish
2022-02-12 10:48:57 DEBUG : Local file system at //?/K:/Just_g_docs/TEST_DIRECTORY: Waiting for transfers to finish
2022-02-12 10:48:57 DEBUG : Waiting for deletions to finish
2022-02-12 10:48:57 INFO : There was nothing to transfer
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Elapsed time: 2.0s
2022/02/12 10:48:57 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Elapsed time: 2.0s
2022/02/12 10:48:57 DEBUG : 18 go routines active
Let me add that all the excluded files listed above are in fact Google documents files. For example, "Listing .docx" is in fact "Listing.gdoc" on server side.