Skip to content

Instantly share code, notes, and snippets.

@manojrammurthy
Created July 3, 2018 16:31
Show Gist options
  • Select an option

  • Save manojrammurthy/d96e1497316bc8424a933415ea39d657 to your computer and use it in GitHub Desktop.

Select an option

Save manojrammurthy/d96e1497316bc8424a933415ea39d657 to your computer and use it in GitHub Desktop.
Upload File to google drive via command line

go to drive where you want to install googledrive cd ~ then wget googledrive wget https://docs.google.com/uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE&export=download then you will see a file like uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE now rename the above file to gdrive mv uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE gdrive assign file executing rights mv uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE gdrive install gdrive in usr folder sudo install gdrive /usr/local/bin/gdrive gdrive list above command will give you output on terminal copy the link and open it in browser you will get a key use that key to enter in terminal then gdrive upload backups.tar.gzgdrive upload backups.tar.gz above command will upload to gdrive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment