WordPress.com Blog Export, The Next Generation is now on GitHub! Please go there for any future updates (and more export/backup scripts).
Based on the following documents:
- Backup WordPress.com Blogs by dandavis.
- Saving the WordPress.com Export File and The Linked Media Files (and wget’s strictness) by Andrew Harvey
- Bash script to export and backup online data