I had rclone all setup and working fine. Then Google changed something with the credentials and it stopped working.
I've now got it working again, but I don't know where the files are being copied to. If I login to Google drive the files are not being transferred anywhere into that account.
So, how do you find out where the files are going to in Google Drive?
Commands:
ls -l localfolder
rclone -v sync -u --exclude ".*" localfolder gdrive:/shiraz
rclone ls gdrive:/shiraz
They produce the same results, as expected.
But these are different to the "shiraz" folder when I login to Google Drive in the browser. Anything I put in the "shiraz" folder in Google Drive does not appear in "rclone ls gdrive:/shiraz".
OK, so I've been reading about service accounts, and that seems to be the reason.
However, if I share a folder from my Google Drive account to the service account, that folder doesn't appear in the service account using "rclone lsl".
I've created a brand new service account now and it just gets 401 errors.
Response: {
"error": "unauthorized_client",
"error_description": "Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested."
}
I guess this problem is there is no place to set the scope in the confused maze of Google's credentials area.
On this page: https://rclone.org/drive/
you can see " * In the next field, “One or More API Scopes”, enter https://www.googleapis.com/auth/drive to grant access to Google Drive specifically."
However, there is no "next field" to enter the scope.