WikiIndex:Recipe for server moves: Difference between revisions

m
Text replacement - "Wiki Backups" to "Wiki database backup"
(→‎Post move: remove outdated locations)
m (Text replacement - "Wiki Backups" to "Wiki database backup")
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''WikiIndex: Recipe for server moves''' — this meta page here on {{tag|WikiIndex}} was originally created to document the procedure of the [[WikiIndex:Server move 2014]].  It may also be useful for any future [[:Category:Server|server]] moves for [[WikiIndex]], or indeed any other [[WhatIsWiki|wiki site]].
'''WikiIndex: Recipe for server moves''' — this meta page here on {{tag|WikiIndex}} was originally created to document the procedure of the [[WikiIndex:Server move 2014]].  It may also be useful for any future [[:Category:Server|server]] moves for [[WikiIndex]], or indeed any other [[WhatIsWiki|wiki site]].
{{TOCright}}
{{TOC right}}
==About the move==
==About the move==
There should be few (if any) visible differences to WikiIndex once the move is complete.  It is simply moving from one [[:Category:Web hosting|hosting]] platform to another.  Here are some good steps to follow during the move.
There should be few (if any) visible differences to WikiIndex once the move is complete.  It is simply moving from one [[:Category:Web hosting|hosting]] platform to another.  Here are some good steps to follow during the move.


===Prior to the move===
===Prior to the move===
Note: The only thing that will be changed on the current [[:Category:Server|server]] before, during, and after the move is to set it the wiki site [[:Category:ReadOnly|read-only]], and add a [[MediaWiki:Sitenotice]] banner during the move itself.  Not mucking with the server preserves a working server that we can fail back to if something unforeseen happens.
Note: The only thing that will be changed on the current [[:Category:Server|server]] before, during, and after the move is to set it the wiki site [[:Category:Read-only|read-only]], and add a [[MediaWiki:Sitenotice]] banner during the move itself.  Not mucking with the server preserves a working server that we can fail back to if something unforeseen happens.


# Make a complete [[:Category:Wiki Backups|backup]] of the wiki. (as of November 14, 2014 ... gzipped up without the cache the backup is 517Mb).
# Make a complete [[:Category:Wiki database backup|backup]] of the wiki. (as of November 14, 2014 ... gzipped up without the cache the backup is 517Mb).
# Restore the backup at another temporary domain on the new server.
# Restore the backup at another temporary domain on the new server.
# Upgrade [[:Category:MediaWiki|MediaWiki]] to the most recent version (also upgrade the [[MediaWiki extension|extensions]]) on the temporary domain.
# Upgrade [[:Category:MediaWiki|MediaWiki]] to the most recent version (also upgrade the [[MediaWiki extension|extensions]]) on the temporary domain.
Line 15: Line 15:


===The actual move===
===The actual move===
# Switch the current WikiIndex [[wiki]] site into [[:Category:ReadOnly|read-only]] mode; to ensure that the [[:Category:Database|database]] is in a consistent state, and that no [[:Category:WikiIndex account|accounts]] or [[edit]]s are created (and subsequently lost) during the move.
# Switch the current WikiIndex [[wiki]] site into [[:Category:Read-only|read-only]] mode; to ensure that the [[:Category:Database|database]] is in a consistent state, and that no [[:Category:WikiIndex account|accounts]] or [[edit]]s are created (and subsequently lost) during the move.
# Add a [[MediaWiki:Sitenotice|site message]] banner to the top of the wiki site on every page that indicates the move is in progress.
# Add a [[MediaWiki:Sitenotice|site message]] banner to the top of the wiki site on every page that indicates the move is in progress.
# Make a new complete dump of the database and [[:Category:Images|images]].  That means a new [[:Category:Wiki Backups|backup]] will be created which contains all changes to wiki until that point in time.
# Make a new complete dump of the database and [[:Category:Images|images]].  That means a new [[:Category:Wiki database backup|backup]] will be created which contains all changes to wiki until that point in time.
# Restore the fresh dump at the temporary domain.
# Restore the fresh dump at the temporary domain.
# Upgrade the database to the most recent schema.
# Upgrade the database to the most recent schema.
Line 33: Line 33:


===Post move===
===Post move===
# Are automated [[:Category:Wiki Backups|backups]] working?
# Are automated [[:Category:Wiki database backup|backups]] working?


[[Category:Admin]]
[[Category:Admin]]