Gentlemen, the challenge: produce the equivalent of
$ php dumpBackup.php --current
(or Special:Export of all the pages on the wiki)
via the API.
OK, something like
api.php?action=query&generator=allpages&gaplimit=max&export&exportnowrap
but is there a way to do all the namespaces in one query, or must we do
one query for each gapnamespace?