Skip to content

Instantly share code, notes, and snippets.

@MKRNaqeebi
Created April 12, 2019 16:57
Show Gist options
  • Save MKRNaqeebi/845c3ee4aa78019e9de5f44886446973 to your computer and use it in GitHub Desktop.
Save MKRNaqeebi/845c3ee4aa78019e9de5f44886446973 to your computer and use it in GitHub Desktop.
Google drive on ubuntu
SSH on to your linux box and download the Linux version of gdrive from GitHub.
cd ~
wget https://docs.google.com/uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE&export=download
You should see a file in your home directory called something list uc=0B3X9GlR6EmbnWksyTEtCM0VfaFE. Rename this file to gdrive.
mv uc\?id\=0B3X9GlR6EmbnWksyTEtCM0VfaFE gdrive
Assign this file executable rights.
chmod +x gdrive
Install the file to your usr folder.
sudo install gdrive /usr/local/bin/gdrive
You’ll need to tell Google Drive to allow this program to connect to your account. To do this, run the gdrive program with any parameter and copy the text it gives you to your browser. Then paste in to your SSH window the response code that Google gives you.Run the following.
gdrive list
YOU ARE DONE! Now you can upload files as required.
gdrive upload backups.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment