The Wayback Machine - https://web.archive.org/web/20200417160247/https://github.com/clark800/dropbox-restore
Skip to content
Restore any dropbox folder to a previous state
Python
Branch: master
Clone or download

Latest commit

Latest commit 20a522f Dec 12, 2017

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Skip restore if latest revision is < cutoff_datetime Aug 6, 2013
LICENSE Initial commit Aug 3, 2013
README.md Update README.md Dec 12, 2017
restore.py Replace datetime.now() with datetime.utcnow() Oct 13, 2015

README.md

dropbox-restore

The Dropbox API changed and this script no longer works; you can try using https://github.com/clark800/dropbox-restore/pull/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

You can’t perform that action at this time.