Manual:Pywikibot/replicate wiki.py

This bot replicates pages in a wiki to a second wiki within one family.

Example
 python pwb.py replicate_wiki [-r] -ns 10 -f wikipedia -o nl li fy to copy all templates from an nlwiki to liwiki and fywiki. It will show which pages have to be changed if -r is not present, and will only actually write pages if -r /is/ present.

You can add replicate_replace to your user_config.py, which has the following format:  replicate_replace = { 'wikipedia:li': {'Hoofdpagina': 'Veurblaad'} } to replace all occurrences of 'Hoofdpagina' with 'Veurblaad' when writing to liwiki. Note that this does not take the origin wiki into account.

Parameters
The following parameters are supported: -r               actually replace pages (without this option --replace         you will only get an overview page)

-o               original wiki --original

destination_wiki destination wiki(s)

-ns              specify namespace --namespace

-dns             destination namespace (if different) --dest-namespace