banner



How To Upload Files To One Drive Command Line

I've been looking at several linux projects here recently, such equally LibreNMS, and you'll demand to exist sure you are backing them up. I wanted to apace backup a compressed copy of my LibreNMS install and so I went looking for a super piece of cake style to upload a file to Google Drive, and I found it with gdrive.

gdrive, non to exist mistaken for Google Drive itself, is a command line tool past Petter Rasmussen for Linux, Windows and OSX. Only what I needed. It'south proved itself so 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 run across a file in your home 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. You'll demand to tell Google Drive to allow this plan to connect to your account. To exercise 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 lawmaking that Google gives y'all.Run the post-obit.
    2016-03-18-16_44_23-olly@ollys-backup-server_-_backups_sql
  6. YOU ARE DONE! Now you can upload files every bit required.

Windows

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

Common Switches

GDrive supports a load of useful features which yous should accept 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

 

How To Upload Files To One Drive Command Line,

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

Posted by: wrighthimered.blogspot.com

0 Response to "How To Upload Files To One Drive Command Line"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel