Git Product home page Git Product logo

drivebackuphttp's Introduction

#DriveBackupHTTP A java program written by Chris Bitler to back up a specified linux directory to google drive as a tar file

##Compilation: You need to add the json-simple-1.1.1.jar as a dependency/library for this project, as it is used to process the results from google's apis Alternatively, you can download it from our jenkins: TBA

##Configuration: You need to get a client_id and client_secret for your project by creating a project with the google developer console.

  1. Go to https://console.developers.google.com

  2. Look for a link on the page that says 'create project'

  3. Give the project a name a name in the 'project name' box, it doesn't matter for this.

  4. Hit create

  5. From the dashboard page it brings you to, go to the blue box saying 'Use google APIs'.

  6. Click enable/manage APIs

  7. Find 'Drive API' and click it

  8. Hit the enable api button

  9. It should tell you that you need to create credentials, hit the 'go to credentials' button

  10. On the page you are directed to, hit the 'add credentials' dropdown and select "OAuth 2.0 Client ID"

  11. Configure the name on the consent screen as it asks

  12. Select 'other' as the application type then name it 'CLI'

  13. Copy down the client ID and client secret it gives you into your config file

To configure the specific directory for the backups, you need to go to your google drive in a browser, and copy everything after the / after 'folders' in the URL. For example:

https://drive.google.com/drive/u/0/folders/XYZ123

Copy XYZ123 into the config.json for the directory to backup to.

##Credits: Json-Simple project for making it possible to easily parse the responses

drivebackuphttp's People

Contributors

chris-bitler avatar chris-bitler2 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.