Git Product home page Git Product logo

dropbox-sync's Introduction

dropbox-sync

Syncs entire folder structure from Dropbox to local machine

Currently only supports individual Dropbox accounts and not Business/Team accounts.

Setup steps

Install packages

pip install -r requirements.txt

Get Dropbox API access token

  1. Go to https://dropbox.com/developers/apps
  2. Click the Create App button
  3. Select Scoped Access and Full Dropbox
  4. Enter app name (must be unique)
  5. Click Create App
  6. Under the Permissions tab, select the following permissions:
  • files.metadata.read
  • files.content.read
  1. Under the Settings tab, click the Generate Token button

Configuration

  • Create an environment variable named DBX_ACCESS_TOKEN for the access token

Usage

python dropbox_backup.py --source "/Shared/My Dropbox" --destination "/backups/"

dropbox-sync's People

Contributors

steelcityamir avatar

Watchers

 avatar  avatar

dropbox-sync's Issues

Providing access token for business team causes error

When proving an access token with Dropbox Business team access, the script exits with the following error:

dropbox.exceptions.BadInputError: BadInputError('b0fccd373a96451c8ae1e1998ea7b898', 'Error in call to API function 
"users/get_current_account": This API function operates on a single Dropbox account, but the OAuth 2 access token 
you provided is for an entire Dropbox Business team.  Since your API app key has team member 
file access permissions, you can operate on a team member\'s Dropbox by providing 
the "Dropbox-API-Select-User" HTTP header or "select_user" URL parameter to specify the exact user 
<https://www.dropbox.com/developers/documentation/http/teams>.')

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.