Rename a wiki
From Wikitech
(Difference between revisions)
(Created page with '<div style="background:#ffeeaa;border:solid 2px red;margin:2em;padding:1em;"> This document describes a possible approach to renaming a wiki. This is a '''Request for comments''...') |
|||
| Line 16: | Line 16: | ||
# Set ''oldwiki'' to read-only | # Set ''oldwiki'' to read-only | ||
# Create a mysql dump of the database ''oldwiki'' | # Create a mysql dump of the database ''oldwiki'' | ||
| + | # Create a mysql dump of the extstores. Very old wikis will have text records stored in different extstores! | ||
# php maintenance/addwiki.php --wiki=''oldwiki'' ''new'' ''newwiki'' ''newwiki'' ''new.wikipedia.org'' | # php maintenance/addwiki.php --wiki=''oldwiki'' ''new'' ''newwiki'' ''newwiki'' ''new.wikipedia.org'' | ||
# Set ''newwiki'' to read-only | # Set ''newwiki'' to read-only | ||
# Import the database dump of the old wiki into the new database. | # Import the database dump of the old wiki into the new database. | ||
| + | # Import the extstore dump into the new exstore database. | ||
# Change all settings in InitialiseSettings.php and, if necessary, in flaggedrevs.php etc pp | # Change all settings in InitialiseSettings.php and, if necessary, in flaggedrevs.php etc pp | ||
# Move the images from /mnt/upload6/''project''/''old'' to /mnt/upload6/''project''/''new'' and from /mnt/thumbs/''project''/''old'' to /mnt/thumbs/''project''/''new'' | # Move the images from /mnt/upload6/''project''/''old'' to /mnt/upload6/''project''/''new'' and from /mnt/thumbs/''project''/''old'' to /mnt/thumbs/''project''/''new'' | ||
Revision as of 20:39, 26 January 2011
This document describes a possible approach to renaming a wiki.
This is a Request for comments and has not been reviewed yet.
Assumptions
- The language code of a wiki shall be renamed. The wiki keeps its "class" (e.g. wikipedia, wikiversity, etc).
- The languagecodes "old" and "new" will be used to name the old and new wikis. "newwiki" and "oldwiki" are the names of the new and old databases.
Approach
- Add the new language code and the language name to languages/Names.php
- Create messages/MessagesNew.php and, if necessary, classes/LanguageNew.php
- Add the language code to /home/wikipedia/common/langlist
- Set oldwiki to read-only
- Create a mysql dump of the database oldwiki
- Create a mysql dump of the extstores. Very old wikis will have text records stored in different extstores!
- php maintenance/addwiki.php --wiki=oldwiki new newwiki newwiki new.wikipedia.org
- Set newwiki to read-only
- Import the database dump of the old wiki into the new database.
- Import the extstore dump into the new exstore database.
- Change all settings in InitialiseSettings.php and, if necessary, in flaggedrevs.php etc pp
- Move the images from /mnt/upload6/project/old to /mnt/upload6/project/new and from /mnt/thumbs/project/old to /mnt/thumbs/project/new
- ??? Do we have to do any changes for SUL?
- Update the interwiki cache: php maintenance/dumpInterwiki.php -o cache/interwiki.cdb
- sync-common-all
- Add the new wiki in the DNS zone
- Set newwiki to read-write
- Set up redirects from old.project.org to new.project.org in /home/wikipedia/conf/redirects.conf
- If no other wikis with language code old exist, remove old from /home/wikipedia/common/langlist
- Remove oldwiki from all *.dblist files