This is how I make backups of Mediawikis on the web for

I use wikiteam dump tools, commit 23efbefda888017c6399060b4647b64c035c6ffe which dates from 2017 but a more recent HEAD was broken when I last tried it. (I should try again).


python --xml --images \
  --api \


zip -r images
(find a suitable index image from images and move to the root)
trash images/

Uploading using the ia command line tool:

ia upload collection_name \
   --metadata="mediatype:text" \
   --metadata="collection:opensource" *

Where collection_name has been pre-created.