What is the problem you are having with rclone?
Certain onedrive specific flags are not being passed to the config file. When setting --onedrive-drive-id & --onedrive-drive-type I would expect these to populate the drive_id & drive_type fields in the config file but it doesn't.
What is your rclone version (output from rclone version
)
rclone v1.53.0
Which OS you are using and how many bits (eg Windows 7, 64 bit)
- os/arch: linux/amd64 - CentOS 7.X
Which cloud storage system are you using? (eg Google Drive)
Microsoft Onedrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone -vv config create onedrivetest onedrive --onedrive-drive-type=business --onedrive-drive-id=xxxx
The rclone config contents with secrets removed.
[onedriveblah2]
type = onedrive
token = {"access_token":"eyJ0eXAiOiJK.............................................................................................................................","expiry":"2020-09-07T16:26:21.141937369+01:00"}
A log from the command with the -vv
flag
2020/09/07 15:26:15 DEBUG : rclone: Version "v1.53.0" starting with parameters ["rclone" "-vv" "config" "create" "onedriveblah2" "onedrive" "--onedrive-drive-type=business" "--onedrive-drive-id=xxxxxx"]
2020/09/07 15:26:15 DEBUG : Using config file from "/home/xxxxxxx/.config/rclone/rclone.conf"
Remote config
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
Auto confirm is set: answering Yes, override by setting config parameter config_is_local=false
2020/09/07 15:26:15 DEBUG : Starting auth server on 127.0.0.1:53682
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=B16EzAMMAkmVO3oqtof5VA
Log in and authorize rclone for access
Waiting for code...
2020/09/07 15:26:21 DEBUG : Received GET request on auth server to "/"
Got code
2020/09/07 15:26:22 DEBUG : Keeping previous permissions for config file: -rw-r--r--
2020/09/07 15:26:22 DEBUG : onedriveblah2: Saved new token in config file
2020/09/07 15:26:22 DEBUG : Closing auth server
2020/09/07 15:26:22 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection
2020/09/07 15:26:22 DEBUG : Keeping previous permissions for config file: -rw-r--r--
--------------------
[onedriveblah2]
type = onedrive
token = {"access_token":"eyJ0eXAiOiJKV1QiLC................................","expiry":"2020-09-07T16:26:21.141937369+01:00"}
--------------------
2020/09/07 15:26:22 DEBUG : rclone: Version "v1.53.0" finishing with parameters ["rclone" "-vv" "config" "create" "onedriveblah2" "onedrive" "--onedrive-drive-type=business" "--onedrive-drive-id=xxxxxx"]