Skip to content

script to: backup mediawiki database, files, download latest version, update files and database

License

Notifications You must be signed in to change notification settings

pitchke/mediawiki-updater

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mediawiki-updater

This script is a meant to be a tool for the lazy admin to update mediawiki to the latest stable version. It is not yet "feature complete" (see the "#TODO" comments) but works for now. It was intended to also work when run as cron job (for the laziest of us).

mediawiki-updater does the following:

  • check for a new version
  • backup MySQL database
  • backup current installation
  • download new MediaWiki release
  • extract new release to temporary folder
  • update current installation with new release
  • deletes the directory "vendor"
  • fetch new external libraries via git into directory "vendor"
  • remove old backups (but keeps the latest 3)
  • run the "maintenance/update.php" script

requirements

bash script

The bash script uses the following executables:

  • git
  • php
  • grep
  • sed
  • awk
  • tar
  • wget
  • unzip
  • gunzip
  • mysqldump
  • mkdir
  • xargs
  • pushd
  • popd
  • head

PowerShell script

The PowerShell script uses the following executables:

  • mysqldump
  • git
  • php

About

script to: backup mediawiki database, files, download latest version, update files and database

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 54.6%
  • PowerShell 45.4%