Google Drive client is’nt available in Ubuntu. Grive – is an open source Linux CLI solution for Google Drive.
Lets install grive
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install grive
Ok, grive is installed. Now i will create a folder in my home direcory and mount my Google Drive there
mkdir -p ~/GDrive cd ~/GDrive grive -a
Few words about “grive -a”. When you run grive for the first time “-a ” its an argument to grant it permission to access your Google Drive.
As a result you will get some url. Copy it and paste it into a browser. You will promt to grant permission for grive to use your account. After alll you will get a code which you should paste into a terminal. In a while you can find all your Google Drive files in a folder named ‘GDrive’. Grive cannot sync changes in authomatic mode, so i added a new line into my cron
*/20 * * * * cd /home/alex/GDrive && grive
Thats all fox!