Tool tip: dropbox-restore

I’m currently rather sleep-deprived and prone to doing stupid things. Like this, for example: rsync -av ~/Dropbox /path/to/backup/directory/ where the directory /path/to/backup/directory already contains a much-older Dropbox directory. So when I set up a new machine, install Dropbox and copy the Dropbox directory back to its default location – hey! What happened to all my space? What are all these old files? Oh wait…I forgot to delete: rsync -av --delete ~/Dropbox /path/to/backup/directory/ Now, files can be restored of course, but not when there are thousands of them and I don’t even know what’s old and new. What I want to do is restore the directories under ~/Dropbox to the state that they were in yesterday, before I stuffed up. Luckily Chris Clark wrote dropbox-restore. It does exactly what it says on the tin. For example: python restore.py /Camera\ Uploads 2014-07-22 Thanks Chris!Filed under: computing, research diary, software Tagged: dropbox, github
Source: What You're Doing Is Rather Desperate - Category: Bioinformaticians Authors: Tags: computing research diary software dropbox github Source Type: blogs