Grive is a Linux alternative to the official Google Drive client, which is not supported within the penguin's operating system. In case someone doesn't know, Google Drive is a service online popular storage system that allows you to work collaboratively on document editing. However, the most common use of Google Drive is as a cloud storage repository, and in this tutorial we are going to teach you how to install Grive and configure it.
It is worth noting that Grive, although it shares many functions with the official client, is somewhat more limited than Windows and OS X versions. However, for some strange reason, the Big G guys have not yet thought of writing a version for Linux. In any case, we are going to get into the matter now and we are going to try to get you to get the most out of Grive.
Installing Grive on Ubuntu
Grive's client can be downloaded as a DEB package from your official website or install via PPA. The PPA that we are going to use in this guide has been created by the guys at WebUpd8, and in order to use it, open a terminal and run these commands:
sudo apt-add-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install grive
This will install the for mobile devices to report the in our operating system and we should be able to run it from terminal. If we write grive -help
we should see a list of commands and modifiers that we can use.
Setting up Grive on Ubuntu
First navigate to the directory you want to use to sync with Google Drive. You may want to create a new one for that purpose. The next step is authenticate your Google account and allow the for mobile devices to report the interact with the service online. To do this, enter the following command in the terminal:
grive -a
This command will generate a single link in terminal that you can press and that will open in your default browser. A website with a 40-digit code which you will have to copy and paste into the terminal. After entering it, Grive will start uploading to the cloud the documents that are contained in the location to which you navigated before from the terminal. This will create the directories with the same structure that they have on your hard drive.
Running Grive
As soon as you have completed the previous step you will no longer have to re-authenticate to sync your files with Google Drive. The only thing you will have to do is navigate to the directory that contains the files that you want to synchronize with your Google Drive and type the following command:
grive sync
To avoid errors or long waiting periods while uploading more files than you expected, you can always check what Grive is going to sync using this command:
grive –dry-run
This command it will only show you what is going to be copied, without really syncing anything.
It is worth noting that Grive is still in its early stages of development, but nevertheless the synchronization works quite well. Users, of course, would appreciate more options, but considering that there is no official Google Drive client for Linux, this is our best asset.
Thank you!
Thank you very much Sergio!
Hi Sergio, can I tell grive in which directory I want to put the files?
Greetings.
Friend can you help me in centos, the starting part with the repo, how would the command be?
Thank you
I found a frontend for grive, it's called grive-tools is in perfect English, in:
https://www.thefanclub.co.za/how-to/ubuntu-google-drive-client-grive-and-grive-tools
installs with
sudo add-apt-repository ppa: thefanclub / grive-tools
sudo apt-get update
sudo apt-get install grive-tools
# regards
from what I see every time I want to synchronize some files I have to go to the folder and put grive sync ?? Did anyone see any way that it is a type of process that runs continuously since Ubuntu starts?
Hola!
What should be done if one does not want to synchronize a folder or change the folder to synchronize?
Thanks and regards!!!
Hello..thanks for the tutor… a question… if I have Windows and Ubuntu on my pc… and my Google Drive is on my F disk…. Being in Ubuntu where I work more time… then to install it would only be to go to the folder F: / Google Drive..open it terminal inside and give the command to synchronize?
It only synchronizes the universal files that is to say that those that are typical of google drive do not download them
Unfortunately, permissions must be given for the application to access all the drive's info, emails, contacts, financial information, etc.
Carlos the best way to do it is by leaving it in a cron; I have it like that and it works wonders for me.
crontab -e
once inside, editing the cron you put the following
grive –id –secret
the client_id and the client_secret you get it from https://console.developers.google.com/ enabling an api for google drive.
http://federicomazzei.com.ar/blog/20200113-sincronizar-archivos-google-drive-linux
Dear Noodle:
try to test your method and when I get the blessed google drive API it gives me options… ..the pay (get api) which asks for a credit card for it… .XD XD XD !!.
The other test option opens up a seemingly long panel for programmers to use in their routines.
therefore ... NOTHING.
Thank you as well.
By the way I warn you that the link "http://federicomazzei.com.ar/blog/20200113-sincronizar-archivos-google-drive-linux" is down.
Greetings bro!
Unfortunately you already give all that information to Google Inc
It was impossible for me. The following error comes up.
At the moment, access with Google is not available for this app
This app is not yet verified by Google to be "Sign in with Google" compatible.
GOGLE DRIVE has disabled login from this application.
The link does not work
I would like to know how the Gdrive decides which file to delete and which file to upload or download to the cloud, that is, if I copy a file to the cloud, how does it decide to download it to the computer and not delete it or if I delete a file in the cloud As you decide, erase it on the computer and not download the one in the cloud .. Thank you
PS: my email is carlosvaccaro1960@gmail.com