Our bigzilla installation has a few GB of data and no server admin. I have web administrative access to bugzilla and would like to get all of the attachments (with their original name and bug #).
I know there's a mass export of database as XML, but presumably the attachments would have to be parsed afterwards.
I can request access to server and then take a look into attachments table in the bug database, but then, again, I will have to somehow decode the attachment data. So,
how to export all of the Bugzilla's bug attachments at once, as files?
Perhaps some desktop client has this functionality? Or someboday has a script to create a tarball?
I don't know of an existing tool, but here are some useful references for extracting the data from the database (If you or someone else does make a tool, please link it here.)
The attachment filename is in the linked
attachmentstable, which also specifies the bug number.https://dev.mysql.com/doc/refman/5.0/en/select-into.html -- to write files from the database.
You could also use the bugzilla webservice, although that would probably be slow: http://www.bugzilla.org/docs/4.0/en/html/api/Bugzilla/WebService/Bug.html#attachments