wget -O ~/gdrive https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download
Please replace download URL in the command above.
Now add an executable permission
chmod +x gdrive
Now install gdrive
if ! grep -w "PATH=\$HOME/bin" ~/.bashrc ; then mkdir -p ~/bin && echo "PATH=\$HOME/bin:\$PATH" >> ~/.bashrc && source ~/.bashrc ; fi
install gdrive ~/bin && rm -f ~/gdrive
Now you need to authorize your gdrive to access your Google Drive account. Type the command given below, in the output you will get your authentication URL. Copy it and paste in your web browser, then copy your verifitaction code and paste it into SSH.
gdrive list
That's all. You have just installed and configured gdrive. You are able to download and upload to your Google Drive disc.
To get gdrive help use:
gdrive help
To get help with the download command:
gdrive help download
To get help with the upload command:
gdrive help upload
To get help with any other command use:
gdrive help [command]
via https://www.seedhost.eu/whmcs/knowledgebase/250/gdrive-installation.html