

With a few seconds, the restored file should reappear in your Dropbox.Just select the version of the file you want to revive, then click the Restore button. Found the file? Then click its name, and you’ll get its revision history on Dropbox, including any edits and its ultimate deletion from your Dropbox folder.(Make sure to check the “Deleted items” box before clicking the “Search” button). Want to search instead? Go back to the Dropbox home page and perform an “advanced” search. You can jump to a specific Dropbox sub-folder or date by clicking the drop-down menus in the upper-right corner of the page. Next, find the file you want to restore in your Events feed.Go ahead and click the one marked “Events.” Once you do, you’ll see a long list of absolutely every event that’s transpired in your Dropbox, from adding or deleting a file to renaming a folder. When you do, you’ll see a list of all the files and folders stored in your Dropbox, as well short list of links just to the left. First, you’ll need to log onto your Dropbox account from the web.(Paid “Dropbox Pro” users can opt for a feature called Packrat, which stores older versions of your Dropbox files for as long as Packrat is enabled.) The catch? If you’re using the free version of Dropbox, you must act within 30 days, or the deleted Dropbox file will be gone for good. The good news, though, is that there is a way to retrieve any file that’s been removed, edited, or otherwise deleted from your Dropbox. Be warned that Dropbox's documentation does not guarantee that they will always use UTC, so this can break at any time.The “Events” feed gives you the chance to restore a file that was deleted from your Dropbox folder. 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. Specifying a time is not officially supported because the time zone is ignored currently.

Insert APP_KEY and APP_SECRET at the top of restore.py Then install the Dropbox Python API with the following command. Make sure that Python 2.7 and pip are installed. Obtain Dropbox APP_KEY and APP_SECRET by creating a Dropbox App:

You will be prompted to confirm access to your Dropbox account through your web browser. 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.
