GithubHelp home page GithubHelp logo

phinch / google-drive-backup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vikynandha-zz/google-drive-backup

0.0 2.0 0.0 8 KB

A Python script to sync your google drive contents.

Python 100.00%

google-drive-backup's Introduction

Google Drive Backup

A python script to sync your google drive contents.

โš ๏ธ This repository is not maintained anymore. Some of the forks might be more up-to-date.

Features

  • You can Download your entire google drive or any given folder
  • Downloads a file only if it has been modified since last download
  • Logs all actions (optional)
  • Uses OAuth2 authentication and can remember authentication

Requirements

  • Google API Python library. To install run pip install --upgrade google-api-python-client or easy_install --upgrade google-api-python-client

Setup

  • Edit client_secrets_sample.json and add your Google API client id and client secret (If you don't have one, get it here).
  • Save it as client_secrets.json.
  • Now, if you run python drive.py, a browser window/tab will open for you to authenticate the script.
  • Once authentication is done, the script will start downloading your My Drive. Refer the next section for more options.

Options

Following command line options are available.

--destination - Path to the folder where the files have to be downloaded to. If not specified, a folder named downloaded is created in the current directory.

--debug - If present (accepts no value), every step will be logged to the log file.

--logfile - Path to the file to which the logs should be written to. By default, writes to drive.log in the current directory. The file will be overwritten every time the script is run.

--drive_id ID of the folder which you want to download. By default, entire "My Drive" is downloaded.

google-drive-backup's People

Contributors

vikynandha 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.