Backup to GDrive from CLI

Download file

$ wget
$ sudo mv drive_linux /usr/bin/gdrive
$ sudo chmod +x /usr/bin/gdrive

Login to Google Drive

$ gdrive init

Visit this URL to get an authorization code
Paste the authorization code:

Copy and paste authorization code from browser

Paste the authorization code: 4/2wEft2uIw864RlvoMR.........

Now let’s backup the files to Google Drive, it works as follows :

gdrive push -destination (path on google drive) (path on local drive)

ex :

gdrive push -destination GVM/motorexpertz motorexp_*