GithubHelp home page GithubHelp logo

terrorizer1980 / dropbox-restore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clark800/dropbox-restore

0.0 1.0 0.0 22 KB

Restore any dropbox folder to a previous state

License: The Unlicense

Python 100.00%

dropbox-restore's Introduction

dropbox-restore

The Dropbox API changed and this script no longer works; you can try using clark800#48 though it does not restore to the exact previous state

Restore any dropbox folder to a previous state. If a file did not exist at the specified time, it will be deleted.

Example

To restore the folder "/photos/nyc" to the way it was on March 9th, 2013:

python2.7 restore.py /photos/nyc 2013-03-09

Note that the path "/photos/nyc" should be relative to your Dropbox folder; it should not include the path to the Dropbox folder on your hard drive. You will be prompted to confirm access to your Dropbox account through your web browser.

Installation

  1. Obtain Dropbox APP_KEY and APP_SECRET by creating a Dropbox App: https://www.dropbox.com/developers/apps/create

  2. Make sure that Python 2.7 and pip are installed.

  3. Then install the Dropbox Python API with the following command.

    sudo pip install dropbox

  4. Download restore.py from Github

  5. Insert APP_KEY and APP_SECRET at the top of restore.py

Time

Specifying a time is not officially supported because the time zone is ignored currently. However, it seems like Dropbox always uses UTC, so you can try specifying UTC times at your own risk by specifying the date and time in the format YYYY-MM-DD-HH-MM-SS on the command line. Be warned that Dropbox's documentation does not guarantee that they will always use UTC, so this can break at any time.

Donations

If you would like to make a donation, you can use the PayPal button on my website: http://cclark.me

dropbox-restore's People

Contributors

clark800 avatar

Watchers

 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.