Use Grive to sync files or folders between the Linux computer and Google Drive

It’s been more than a while waiting for Google to come up with a Google Drive sync client for Linux. While the clients are available for Android, Windows, Mac and more, Linux does not have an ‘official’ Google Drive client.

If you need a PC application to synchronize files and folders between your computer and your Google Drive, you can use a program called Grive.

Install Grive
Grive is easy to install on Ubuntu. Open a new terminal window and enter the following commands:
$ sudo add-apt-repository ppa:nilarimogard/webupd8 <enter>
$ sudo apt-get update <enter>
$ sudo apt-get install grive <enter>

To use grive, follow the steps below:

Create a folder where you would like to copy files to upload or where files can be downloaded
$ md myGoogleDrive <enter>

Enable access to grive, to read your Google Drive contents
$ cd myGoogleDrive <enter>
$ grive -a <enter>

After running above, a URL will be displayed in the terminal window. Copy it to your web browser.
Grant permission to grive to access your Google Drive on the web. A token will be displayed. Copy that token text and paste into the terminal window. After you enter it, grive will get access to your Google Drive.

Sync files between the myGoogleDrive folder and your Google Drive
$ grive <enter>

Whenever you want to sync the myGoogleDrive folder with Google Drive use below commands
$ cd myGoogleDrive <enter>
$ grive <enter>

Still this is faster than any other method. If you need a GUI based Google Drive client for Linux, you can try the commercial InSync (http://www.insynchq.com) client.

Leave a Reply

  

  

  

Blue Captcha Image
Refresh

*

June 2019
M T W T F S S
« Feb    
 12
3456789
10111213141516
17181920212223
24252627282930