This shell script utilizes the excellent tumblr_backup.py and makes it do exactly what I want it to do – and most likely, that’s what you want it to do as well.
The script downloads the current versions of the required Python scripts, backups one or multiple Tumblr blogs to date-prefixed folders (e.g.
2014-09-17_neondust.tumblr.com), and subsequently removes the downloaded software automatically.
It runs out-of-the-box on any recent version of Mac OS X and most Linux distributions, you can configure it using the variables at the top of the file, and there’s a quick tutorial at the bottom of this post. If there are any errors, make sure you have Python 2.6 or newer installed.
(The code below won’t show up on your dashboard or in your RSS reader. View this post on my blog to see it.)
In case you have no prior experience with the command line, here’s a step-by-step tutorial:
- Click the “view raw” link above and save that file as
backup_tumblr.shon your Desktop.
backup_tumblr.shin a text editor and edit the
BLOGSvariable according to the instructions in the file.
- Open your terminal emulator (Terminal.app on Mac OS X).
- Run the script: Type
sh Desktop/backup_tumblr.shand press Enter. You can abort the backup at any time by pressing ctrl+C (don’t worry about the Python error messages that might appear).
- Depending on how many blogs you’re backing up and how many posts they contain, it might take half an hour or so to download everything. If you haven’t changed the
OUTvariable, everything should show up on your Desktop.