Giter Club home page Giter Club logo

dbdownload's Introduction

DBdownload

Now requires Python 3

DBdownload is a simple Dropbox client written in Python. It does one-way synchronization from a directory in your Dropbox account to a local directory. The local folder will be kept in sync with your Dropbox folder, so if anything is updated, removed or added on Dropbox, it will be downloaded and kept updated in your local folder. Local changes will be overwritten - it's one-way only.

Why?

I just tried to install and use the official Dropbox client on a low-end VPS, and the OOM kept killing it because it was such a memory hog. Frustrated by not being able to simply sync a folder to my box, I checked out whether I could hack together a simple client which only did one-way synchronization. DBdownload is the result.

Install

  • Fetch DBdownload, e.g., with

      $ git clone https://github.com/jupdike/DBdownload.git
    
  • Install (this will also install all necessary dependencies, if missing):

      $ python setup.py install
    
  • If dropbox module is missing, simply do

      $ pip3 install dropbox
    

Uninstall

Once installed, DBdownload can be removed from the system with:

$ pip3 uninstall dbdownload

Get an access token (64 chars long) from Dropbox

And write that to a secure location, then

$ python3 download.py --token `cat ../MY/PATH/dropbox-access-token-filename.txt` FROM-Dropbox-DIR TO-local-DIR

(OLD Instructions) Use

Just launch DBdownload and specify the source Dropbox directory you would like to sync to your local computer, and the target folder it should be synced into. If the local folder does not exist DBdownload will create it, if it is used, it will be cleared first.

$ dbdownload -s test -t /tmp/test
URL: https://www.dropbox.com/1/oauth/authorize?oauth_token=fjlkadf8a7dfjxy
Please authorize this URL in the browser and then press enter

If this is the first time DBdownload is started, it will request access to your Dropbox data. Just open the link in your browser:

Dropbox authentication

and allow access to your Dropbox:

Dropbox authentication

Get back to the console, press enter, and if you have allowed access, DBdownload should start synchronizing your Dropbox source folder to the target directory.

DBdownload has quite some flags and optional parameters, check them out:

$ dbdownload --help

dbdownload's People

Contributors

jupdike avatar ldx avatar onfire4g05 avatar the-happy-hippo avatar

Stargazers

 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.