Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Alternative Google Drive Export #2243
When exporting (copy, copyto, sync) Google Drive files that are too large for the API export command, the files are not exported.
This appears to me a known issue with the published Google API. It can’t seem to export files larger that 5MB, might be 10MB (or some unspecific size; Google won’t say).
And this might be a better (or alternative) api call for copying from G Suite, if the file is too large. Maybe a "alt_fallback" switch in the command.
plus some more for spreadsheets and drawings. Credit to https://www.labnol.org/internet/direct-links-for-google-drive/28356/
Here is a beta fix for you to try
https://beta.rclone.org/v1.40-113-g0912186a-fix-2243-drive-export/ (uploaded in 15-30 mins)
This exports all the docs using those URLs you linked.
Can you test if it works please?
And also I'd like your opinion on whether rclone should use the new URLs always or whether it should be via a flag!
PS I'm sure I posted this already - It seems to have disappeared though...
I will try on Monday. I would suggesting using the published API's as the default, then have a flag to try the alternate API if the published API fails. I'm not sure what the implications of using the unpublished API are, and therefore should probably be avoided unless necessary.
Alternatively, use the published API by default and fall back to the unpublished API when the files failed to download, with no flag.
It all depends on the implications of using the unpublished API.