importing_mediawiki_content_into_dokuwiki
no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Letzte Überarbeitung | |||
— | importing_mediawiki_content_into_dokuwiki [2018-11-06 19:27] – angelegt fanir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Importing Mediawiki Content into Dokuwiki ====== | ||
+ | |||
+ | Beware, all shell code listings here are for zsh on Debian! | ||
+ | |||
+ | You need: | ||
+ | |||
+ | * A working Dokuwiki instance | ||
+ | * API access to your mediawiki | ||
+ | * For importing users: Access to the database of your Mediawiki installation | ||
+ | * yamdwe: [[https:// | ||
+ | * As of 2018-11-05, using a MariaDB 10.2 and yamdwe with a virtualenv, I had to install libmariadb-dev and libmariadb-dev-compat in version 2.* to compile MySQL-python | ||
+ | |||
+ | - Import pages and media using yamdwe.py | ||
+ | - Import users using yamdwe_users.py | ||
+ | - '' | ||
+ | - Add page titles from the page file names: '' | ||
+ | - I only had pages in the root namespace, '' | ||
+ | - The first '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - The second sed inserts ('' | ||
+ | - Check your pages | ||
+ | - Maybe fix the page file permissions and page titles (title case doesn' | ||
+ | - Delete backups: '' | ||
+ | - yamdwe inserted a comment at the bottom of the imported mediawiki main page, delete that maybe | ||
+ | |||
+ | ===== Example Listing ===== | ||
+ | |||
+ | < | ||
+ | # Install Dokuwiki | ||
+ | # Install libmariadb-dev and libmariadb-dev-compat in version 2.* | ||
+ | > git clone https:// | ||
+ | > cd yamdwe | ||
+ | > virtualenv -p python2.7 env | ||
+ | > pip install -r requirements.txt | ||
+ | > python yamdwe.py https:// | ||
+ | > touch path/ | ||
+ | > python yamdwe_users.py -u mediawiki --db wiki path/ | ||
+ | > for f in $(find data/pages/ -maxdepth 1 -type f) ; do t=$(echo $f | sed -E -e ' | ||
+ | # Check your pages! | ||
+ | > find data/pages -maxdepth 1 -type f -name \*.txt.backup -execdir rm \{\} \; | ||
+ | </ | ||
importing_mediawiki_content_into_dokuwiki.txt · Zuletzt geändert: 2020-02-10 22:11 von fanir