Migration des wikis : Différence entre versions

De Wicri Base 1.31
(Wiki normal)
(Wiki moyen anglais)
Ligne 23 : Ligne 23 :
 
==Wiki moyen anglais==
 
==Wiki moyen anglais==
 
  php dumpBackup.php --current --filter=namespace:10,11 >../FTP/enTemplate.xml
 
  php dumpBackup.php --current --filter=namespace:10,11 >../FTP/enTemplate.xml
  php dumpBackup.php --current --filter=namespace:10,11 >../FTP/enMisc.xml
+
  php dumpBackup.php --current --filter=namespace:2,3,4,5,6,7,8,9,1é,13,14,15,102,103,108,109,828,829 >../FTP/enMisc.xml
 +
php dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/enWicGad.xml
 +
php dumpBackup.php --full -filter=namespace:0,1 >../FTP/enMainFull.xml
  
 
==Pour le pool==
 
==Pour le pool==

Version du 2 janvier 2021 à 20:50

Cette page concerne les migrations des wikis depuis le domaine lorexplor.istex.fr.

Création du nouveau wiki

Installation

Créer un répertoire FTP pour chaque famille

Wiki normal

Dans le domaine lorexplor.istex.fr

Pour un wiki français :

php maintenance/dumpBackup.php --full > ../FTP/FrAllFull.xml

Dans le domaine wicri-demo.istex.fr

 wget https://lorexplor.istex.fr/Wicri/ ... /FTP/FrAllFull.xml
 cd ../fr/
 php maintenance/importDump.php ../FTP/FrAllFull.xml 
 php maintenance/rebuildrecentchanges.php
 php maintenance/initSiteStats.php --update
  php maintenance/runJobs.php

Wiki moyen anglais

php dumpBackup.php --current --filter=namespace:10,11 >../FTP/enTemplate.xml
php dumpBackup.php --current --filter=namespace:2,3,4,5,6,7,8,9,1é,13,14,15,102,103,108,109,828,829 >../FTP/enMisc.xml
php dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/enWicGad.xml
php dumpBackup.php --full -filter=namespace:0,1 >../FTP/enMainFull.xml

Pour le pool

pages

sur le domaine lorexplor

wget https://lorexplor.istex.fr/Wicri/Wicri/FTP_pool/allFull.xml
php importDump.php --conf ../LocalSettings.php ../../FTP/allFull.xml --username-prefix=""

images

sur le domaine lorexplor

cd /applis/lorexplor/Wicri/Wicri/FTP_pool

cp -r ../pool/images/f f
tar -cvf f.tar f

sur le domaine demo.istex.fr

cd /applis/Wicri/SitDemIstex/V131/FTP

wget https://lorexplor.istex.fr/Wicri/Wicri/FTP_pool/f.tar
tar -xvf f.tar 
mkdir file_f
cp f/*/* file_f/.
cd ../pool/
sudo php maintenance/importImages.php ../FTP/file_f
sudo chown -R www-data:www-data images/