# Make copies of the current 1.30 versions of -01:~/wikibase-registry # mkdir -01:~/wikibase-registry # cp -r. ![]() I’ll do this by creating a new folder, copying the existing extension code into it, and then changing and fetching the branch. We need new versions of these extensions for Mediawiki 1.31 while leaving the old versions in place for the still running 1.30 version. The wikibase-registry has a couple of extension shoehorned into it mounted through mounts in the docker-compose file (see above). I’m not going to bother checking that the backups are actually complete here, but you might want to do that! Prepare the next version rw-r-r- 1 root root 467 Jan 29 16:40 mediawiki-images-data_2 rw-r-r- 1 root root 57M Jan 29 16:40 mediawiki-mysql-data_2 ls -lahr /root/volumeBackups/ | grep 2019 Looking in the /root/volumeBackups directory I can see that the backup files have been created. docker run -v wikibase-registry_mediawiki-mysql-data: /volume -v /root/volumeBackups: /backup -rm loomchild/volume-backup backup mediawiki-mysql-data_20190129ĭocker run -v wikibase-registry_mediawiki-images-data: /volume -v /root/volumeBackups: /backup -rm loomchild/volume-backup backup mediawiki-images-data_20190129ĭocker run -v wikibase-registry_query-service-data: /volume -v /root/volumeBackups: /backup -rm loomchild/volume-backup backup query-service-data_20190129 Code language: JavaScript ( javascript ) I’ll run the backup command for all 3 volumes used in the docker compose file which cover the 3 locations that I care about that persist data. The wikibase docker-compose example README has a short section about backing up docker volumes using the loomchild/volume-backup docker image. If you have any other mounted files it also might be worth taking a quick snapshot of those. So that you can always return to your previous configuration take a snapshot of your docker-compose file. Query-service-data: Code language: PHP ( php ) Backups ConfirmEdit:/ var/www/html/extensions/ConfirmEditīRAND_TITLE: 'Wikibase Registry Query Service' LocalSettings.php:/ var/www/html/LocalSettings.php:ro mediawiki-images-data:/ var/www/html/images (Yes I know that’s a dumb place, but that’s not the point of this post) version: '3' This docker-compose files is found in /root/wikibase-registry on the server hosting the installation. The current state of the docker-compose file can be seen below with private details redacted. The installation creation process is documented in this blog post, and some customization regarding LocalSettings and extensions was covered here. None of this helps you piece everything together for the docker world. ![]() Update.php has its own documentation on. There is a small amount of documentation in the wikibase docker image README file that talks about upgrading, but this simply tells you to run update.php. I hope it can help those that were chatting on Telegram today. This blog post was written as I performed the update and is yet to be proofread, so expect some typos. Today on the Wikibase Community User Group Telegram chat I noticed some people discussing issues with upgrading Mediawiki and Wikibase using the docker images provided for Wikibase.Īs the wikibase-registry is currently only running Mediawiki 1.30 I should probably update it to 1.31, which is the next long term stable release.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |