Has anyone exported tagged/starred content and want to share how to do it?

Long time later, but now I created a backup script, that you can find here:

BazQux-Backup