Any way to migrate sharing permissions?

What is the problem you are having with rclone?

Sharing permissions are not migrated when copying files from Google My Drive to Microsoft OneDrive. It's not clear to me if this is supposed to work by default or if there is a way to effect that behavior via flags.

I'm testing by adding various internal and external users with different sharing permissions to a source file. After migration, no sharing permissions exist on the target file.

What is your rclone version (output from rclone version)

rclone v1.57.0

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

Google Drive (source)
Microsoft OneDrive (target)

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

rclone copy SourceMyDrive: TargetOneDrive:

The rclone config contents with secrets removed.

[SourceMyDrive]
type = drive
scope = drive.readonly
client_id = REMOVED
client_secret = REMOVED
token = {"access_token":"ya29...","token_type":"Bearer","refresh_token":"","expiry":"2021-12-08T12:41:34.8621240-06:00"}

[TargetOneDrive]
type = onedrive
client_id = REMOVED
client_secret = REMOVED
token = {"access_token":"ey...","token_type":"Bearer","refresh_token":"0...","expiry":"2021-12-08T13:04:03.8637306-06:00"}
drive_id = REMOVED
drive_type = business

A log from the command with the -vv flag

2021/12/08 14:46:59 DEBUG : Creating backend with remote "SourceMyDrive:"
2021/12/08 14:46:59 DEBUG : Using config file from "C:\\Users\\Chad\\AppData\\Local\\Temp\\tmpB5EF.tmp"
2021/12/08 14:47:00 DEBUG : Google drive root '': 'root_folder_id = 0AJMfyeX0r9BWUk9PVA' - save this in the config to speed up startup
2021/12/08 14:47:00 DEBUG : Creating backend with remote "TargetOneDrive:"
2021/12/08 14:47:01 DEBUG : One drive root '': Waiting for checks to finish
2021/12/08 14:47:01 DEBUG : One drive root '': Waiting for transfers to finish
2021/12/08 14:47:02 DEBUG : file3.dat: Starting multipart upload
2021/12/08 14:47:02 DEBUG : file2.dat: Starting multipart upload
2021/12/08 14:47:02 DEBUG : file1.dat: Starting multipart upload
2021/12/08 14:47:02 DEBUG : file2.dat: Uploading segment 0/1048576 size 1048576
2021/12/08 14:47:02 DEBUG : file3.dat: Uploading segment 0/1048576 size 1048576
2021/12/08 14:47:02 DEBUG : file1.dat: Uploading segment 0/1048576 size 1048576
2021/12/08 14:47:03 DEBUG : Migration/file4.dat: Starting multipart upload
2021/12/08 14:47:04 DEBUG : Migration/file4.dat: Uploading segment 0/1048576 size 1048576
2021/12/08 14:47:04 INFO  : file2.dat: Copied (new)
2021/12/08 14:47:04 INFO  : file3.dat: Copied (new)
2021/12/08 14:47:05 DEBUG : Migration/file5.dat: Starting multipart upload
2021/12/08 14:47:05 INFO  : file1.dat: Copied (new)
2021/12/08 14:47:05 DEBUG : Migration/file6.dat: Starting multipart upload
2021/12/08 14:47:05 INFO  : Migration/file4.dat: Copied (new)
2021/12/08 14:47:06 DEBUG : Migration/file5.dat: Uploading segment 0/1048576 size 1048576
2021/12/08 14:47:06 DEBUG : Migration/file6.dat: Uploading segment 0/1048576 size 1048576
2021/12/08 14:47:12 INFO  : Migration/file5.dat: Copied (new)
2021/12/08 14:47:12 INFO  : Migration/file6.dat: Copied (new)
2021/12/08 14:47:12 INFO  : 2021/12/08 14:47:12 -         6 MiB / 6 MiB, 100%, 617.997 KiB/s, ETA 0s
2021/12/08 14:47:12 DEBUG : 17 go routines active

I'm not aware of any way to migrate sharing permissions from one provider to another.

I've seen a few issues talk about it but the complexity would be overwhelming I'd imagine.

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