Nova Resource:Deployment-prep/Import to betawiki

From Wikitech

How to import articles to Betawiki

1. Export desired article(s) in XML format using Special:Exports from source wiki.

2. Log in to deployment-bastion. This requires shell access (root?) to betawikis.

3. Go to mediawiki maintenance folder:

/data/scratch/mediawiki/core/maintenance

4. Become root.

5. Import from XML:

mwscript importDump.php --wiki=eswiki /tmp/Wikipedia-TIMESTAMP.xml

Test using --dry-run if needed. It is important to have dump/XML in /tmp so that mwscript can access it.

6. Rebuild RecentChanges by:

mwscript rebuildrecentchanges.php --wiki=eswiki

Troubleshooting

1. DB connection error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (localhost)

Solution: Your dump file must be in /tmp