User:Kelson/Wiki migration: Difference between revisions

From Wikimedia UK
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:
<source lang="bash">
<source lang="bash">
listAllUsers.pl --host=uk.wikimedia.org --path=w > users
listAllUsers.pl --host=uk.wikimedia.org --path=w > users
cat users | createMediawikiUsers.pl --path=/var/www/wiki/w/ --database=wiki --databaseUsername=foo --databasePassword=bar > userpasswords
<source>
<source>

Revision as of 21:48, 27 August 2013

  • Mirror WMF dump:
mirrorWmfDumps.pl --projectCode=ukwikimedia --databaseName=wiki --installPath=/var/www/wiki/w/ --databaseUsername=foo
--databasePassword=bar --withPageLinks --withMetaPages --withExternalLinks --withHistory --withSiteStats --withLogging 
--withPageRestrictions --withUserGroups
  • Mirror images:
mirrorImageFiles.pl --host=uk.wikimedia.org --path=w --directory=/var/www/wiki/w/
  • Re-create users

<source lang="bash"> listAllUsers.pl --host=uk.wikimedia.org --path=w > users cat users | createMediawikiUsers.pl --path=/var/www/wiki/w/ --database=wiki --databaseUsername=foo --databasePassword=bar > userpasswords <source>