
"""Dropbox only keeps historical file versions for 30 days (unless you haveĮnabled extended version history). So if your dropbox directory is at "/home/user/dropbox"Īnd you want to restore "/home/user/dropbox/folder", the ROOTPATH is "/folder". """Note: You must specify the path starting with "/", where "/" is the root I suggest you test it with a dummy folder before breaking any important stuff.ĭELAY = 0.2 # delay between each file (try to stay under API rate limits)

First time you run the script you will have to authorise it by calling the url provided.Your path must start with “/”, where”/” is the root of your Dropbox.Python restore.py /path/inside/your/dropbox YYYY-MM-DD Run the script from a command prompt >.Save the script as restore.py y update it with your keys.Keep the keys as you’ll need them for the script. Create a new Dropbox App to allow changes in your account from the developers section.
Dropbox command e install#

Dropbox – Restore a folder to a specific date
