Rclone copy GDrive dont copy folder itself, just content

What is the problem you are having with rclone?

When i use rclone to clone GDrive <-> GDrive via

The content of that folder is copied, but not the folder itself, which cost me time to create by hand the folder and move again.
How can i retain the folder structure, thanks.

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

rclone v1.63.1

  • os/version: Microsoft Windows 11 Enterprise 22H2 (64 bit)
  • os/kernel: 10.0.22621.3155 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.20.6
  • go/linking: static
  • 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 copy Drive,root_folder_id=<redacted>: "Drive:/dataM/" --drive-server-side-across-configs -P --update --verbose --checkers 8 --transfers 8

Please run 'rclone config redacted' and share the full output. If you get

[AllDrives]
type = combine
upstreams = "Some Gdrive shared drives"

[Drive]
type = drive
scope = drive
token = XXX
team_drive =
copy_shortcut_content = true
acknowledge_abuse = true
server_side_across_configs = true

[Onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal

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

[driveBaob]
type = drive
scope = drive
token = XXX
team_drive =

[onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
### Double check the config for sensitive info before posting publicly

welcome to the forum,

can append the folder name of the dest path, something like
rclone copy Drive,root_folder_id=<redacted>: "Drive:/dataM/foldername"

welcome to the forum

Thanks,
Well is there a more efficient way than that, something like

rclone copy Drive,root_folder_id=<redacted>: "Drive:/dataM/*" 

and it auto get the name?

Also, is there a trick where it can auto get the id, cause i am tired of copying the shared url, then extract by hand the id of the folder, thanks.

P/s: I was thinking i get a reply tomorrow, that's fast!

that will not work

yes, write a script to extract the id.

1 Like

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