Google Drive CLI

Download file di : https://github.com/prasmussen/gdrive

Sesuaikan dengan sistem operasi yang anda gunakan.

Contoh : Debian 8 x64 : gdrive-linux-x64

wget -O gdrive "https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download"
chmod +x gdrive
mv gdrive /usr/bin/

Lakukan autentikasi untuk pertama kali :

gdrive about

perintah tersebut akan memberikan url untuk anda dapat memberikan akses ke google drive anda, lalu masukkan kode auth yang anda dpt.

Troubleshoot:

gdrive Failed getting oauth client: Failed to exchange auth code for token: Post https://accounts.google.com/o/oauth2/token: x509: certificate signed by unknown authority

apt-get install ca-certificates

 wget WARNING: The certificate of 'docs.google.com' is not trusted.

wget -O gdrive "https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download" --no-check-certificate

 

Posted under Tutorial