Comments on How to access your Google Drive account from Linux command line using Gdrive
While Google Drive is no doubt one of the most popular (if not the most popular) cloud storage services available today, what's really sad is that there is no official Drive client available for Linux. But that doesn't mean there are no alternatives - in fact the awesome Linux/open-source community has developed several unofficial Google Drive clients, some of which we've already discussed here at HowtoForge. In this article, we will discuss Gdrive.
26 Comment(s)
Comments
Thank you. This is the first article I have read about how to access Google Drive from the Linux command line that is concise, to the point, and leads to useful results.
Perfect article! Tried to upload files to Google Drive a few months ago, ... without success. Today I found your article and it was exactly what I was looking for. Thank you!
BR/zacharias
thanks
At last! I was about to abandon GDrive and all that caml stuff when I found this one. Works like a charm, albeit I have yet to figure how to list a given sub folder. Anyone know if that's a feature? Thanks for the post, much appreciated!
Thank you for this great article. I think -or expect- to implement gdrive in a shell script soon. How long does the auth code last once you activate it? Hours, days, weeks? As the implementation is likely going ton end on a headless server, I was wondering what to do after the auth code expired.
Any advice please?
Hi, Good day! Did you get answer for the auth code question? I am having same trouble where my script is going to run in a headless server and I am wondering if someone figured out on the auth code.
i want to download things from the web directly to google drive. is there a way for that?
How to get the from gdrive?
Nice Article, My Question is that is grive two way sync? Does it also sync the files on my google drive to my local PC? If yes, is there any way to turn this off? I want one way sync, from my PC to google Drive.
Hello,
if you want to effectively support official GNU/Linuxo Google Drive client, I suggest pushing (upvoting) officially in cloudconnectcommunity.com (CCC) in Future Ideas section. There are already several posts addressing this issue, but they haven’t got many upvotes, recently, most voted project has got some 280 upvotes, those linux client posts just some 80 - we need to support them and pull them up.
Motivation:
I don’t understand how a company (Google) having a world-wide success with Linux-kernel-based operating system (Android) can support Microsoft Windows in such a showy way, and do not provide a for-a-soo-loong-promised official Drive client for another Linux-kernel-based OS (various GNU/Linux operating systems such as Debian, Fedora, Arch, Ubuntu and many of their derivates).
In our company, we’ve been using several GNU/Linux machines, and we are planning to deploy them even more, instead of Windows OS. Not having official Google Drive client is just another obstacle in deploying opensource/FOSS solutions :/
If you are a GSuite administrator, you may help by upvoting here:
and/or here:
and/or here:
and/or here:
and/or here:
Thanks a lot!
#McZ
Thank you very much ^_^.
This is a great guide. How do I access files shared in a Teams drive?
Good question!!!
i want only the file id that i upload or i only want to fetch the id for either file or folder so what is the way to do this.
gdrive is failing more and more over time. I started with about 80% success rate on the commands I ran, but it's been getting worse over time. Im down today with 100% failure to run any commands. Just keeps reporting that the rate is too high, or returns a 1 exit code.
How to sync folder if it is uploaded once ? I used upload command and it create duplicate directory.
You are running the commands too often. There is ratelimiting on the API and that is completely normal. It's not a problem of the tool, it is a problem with how often you send requests. The google drive API isn't meant for heavy loads of automation.
Great tutorial. All worked except when I want download a file to my Linux latop I am having to use the file-id not the file name. If I use the filename I get a 404 error, file not found. But when I upload it works with the filename. Is that right?
Any way to download multiple files using this? Like can I specify two ids such that they'll be downloaded one after the other
Used to use this quite a bit, but looks like it is down (as of November 2019). The authentication step redirects to a Google page saying "temporarily disabled for this app". Commenters on the github page say re-compiling with your own API keys should still work (little more complicated).
I get "Logging in with google for this application has temporarily been disabled. The usage of this app with google Log-in has not yet been confirmed."
Sign in with Google temporarily disabled for this app
When i try to get Verification Code with gdrive aboutand pasting url to the browser and than login, i've got the following error ;
Sign in with Google temporarily disabled for this appThis app has not been verified yet by Google in order to use Google Sign In.
As of February 25th, 2020, the verification code can't be obtained. Like previous comments stated, Google displays a warning message for the URL, nothing else. I did not have a chance to use it. I guess it was good while it lasted.
It's 13 Apr 2020 and still no code can be obtained
When trying to authenticate with my google account I get this error page "This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access."
anyone know how to allow this or have a work around?
This works fine, as far as it goes. I'd really like to be able to access a Google-Sheets spreadsheet directly from libreoffice (or any other app). Is this possible?