I wanted to synchronize my files to my Google Drive in an easier format than opening up the web interface on my laptop which is running Linux Mint 14. I searched a few options, but many were outdated (such as the old Google Docs FS) or, as in the case of InSync, were a pay option. I stumbled upon Grive. It is fairly straight forward. The Webupd8 PPA repository seems to be broken, and the application does not install. However, you can download and install the .deb package from UbuntuUpdates.org.
After installing the package, which will install three additional required packages, you can configure and use it doing the following:
Enter the following from your Linux terminal once it is installed:
First, let’s make a directory. You can call this drive anything you want. The name of the directory in this example is ‘grive’.
Navigate to your new directory.
We need to set up Google Drive for the first time. You must give the “-a” argument to grant permission to access your Google Drive.
After running the command above, copy and paste the URL output into your browser. Google will ask you permission to “Allow Access” for the application. An authentication code will be returned once you allow access. Copy and paste this code into your terminal window and press “Enter”. Now you are set up and ready to sync.
Anytime you want to sync your drive, merely run the “grive” command (no arguments) after navigating to your Google Drive folder form a terminal window. And if you are savvy enough, you can write a shell script to perform this action every time you log in. It is not a fully automated solution, but it does work and takes the hassle out of uploading and downloading files through your web browser.
If you run into any problems, make sure you have the following installed:
And then download it from the repository and compile it to install. Sudo is your friend as well.
Although, if you use the grive directory here, you may want to rename the directory you intend to use for your Google Docs.
UPDATE FOR LINUX MINT 15
The grive package that is available in the default repositories is out of date and does not work. Use webupd8’s build instead. The default version of grive that tries to install is version 2.0; the repository below installs 3.0 raring build.
You can set up a cron job by doing the following:
This sets it to run the cron job every 15 minutes. Change the 15 to another variable if you want. Mine is set to run every 30. Username is obviously YOUR user name for your account. And change the grive directory to whatever you have named yours.