Upload to Google Docs From Unix Terminal

I've been looking at several linux projects here recently, such every bit LibreNMS, and you'll need to be certain y'all are backing them upwardly. I wanted to speedily backup a compressed copy of my LibreNMS install and and then I went looking for a super easy mode to upload a file to Google Drive, and I establish it with gdrive.

gdrive, not to exist mistaken for Google Drive itself, is a command line tool past Petter Rasmussen for Linux, Windows and OSX. Merely what I needed. Information technology's proved itself and then useful that I can't imagine how I lived without it.

Linux

  1. SSH on to your linux box and download the Linux version of gdrive from GitHub.
  2. You should see a file in your dwelling house directory called something list uc=0B3X9GlR6EmbnWksyTEtCM0VfaFE. Rename this file to gdrive.
  3. Assign this file executable rights.
  4. Install the file to your usr folder.
  5. Y'all'll demand to tell Google Drive to let this programme to connect to your business relationship. To practice this, run the gdrive programme with whatever parameter and re-create the text it gives y'all to your browser. Then paste in to your SSH window the response code that Google gives y'all.Run the following.
    2016-03-18-16_44_23-olly@ollys-backup-server_-_backups_sql
  6. YOU ARE DONE! Now y'all tin upload files as required.

Windows

  1. Download the Windows version of gdrive from github.
  2. Copy the gdrive-windows-x64.exe file to your c:\windows binder
  3. Run gdrive with a parameter to get the Google authentication code and then copy that to a browser windows. Paste dorsum the verification code.
    2016-03-18-16_58_22-C__Windows_system32_cmd.exe---gdrive-windows-x64--list
  4. Now upload a file. WOOOT!

Mutual Switches

GDrive supports a load of useful features which you should take a look at. The follow are grabbed from the gDrive page at git.com.

Upload file or directory

Download file or directory

List files

Share file or directory

 

claytonnotere.blogspot.com

Source: https://olivermarshall.net/how-to-upload-a-file-to-google-drive-from-the-command-line/

0 Response to "Upload to Google Docs From Unix Terminal"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel