Migration des wikis : Différence entre versions
De Wicri Base 1.31
(→Dans le domaine wicri-demo.istex.fr) |
(→Wiki privé moyen français) |
||
(38 révisions intermédiaires par le même utilisateur non affichées) | |||
Ligne 24 : | Ligne 24 : | ||
<source lang="sh"> | <source lang="sh"> | ||
</source> | </source> | ||
+ | |||
+ | ==Wiki moyen français== | ||
+ | |||
+ | api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml | ||
+ | ;Sur LorExplor: | ||
+ | <source lang="sh"> | ||
+ | |||
+ | mkdir FTP | ||
+ | mkdir FTP/frFiles | ||
+ | |||
+ | cd fr | ||
+ | |||
+ | |||
+ | |||
+ | php maintenance/dumpBackup.php --current --filter=namespace:10,11 >../FTP/frTemplate.xml | ||
+ | php maintenance/dumpBackup.php --current --filter=namespace:2,3,4,5,6,7,8,9,12,13,14,15,102,103,108,109,828,829 >../FTP/frMisc.xml | ||
+ | php maintenance/dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/frWicGad.xml | ||
+ | php maintenance/dumpBackup.php --full --filter=namespace:0,1 >../FTP/frMainFull.xml | ||
+ | |||
+ | cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/frFiles/. | ||
+ | cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/frFiles/. | ||
+ | cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/frFiles/. | ||
+ | |||
+ | cd .. | ||
+ | |||
+ | cp -r docs FTP/. | ||
+ | |||
+ | tar -cvf FTP.tar FTP | ||
+ | </source> | ||
+ | |||
+ | ;Sur Wicri.demo: | ||
+ | php maintenance/importDump.php --report 10 ../FTP/frTemplate.xml | ||
+ | php maintenance/importDump.php --report 10 ../FTP/frMisc.xml | ||
+ | php maintenance/importDump.php --report 10 ../FTP/frWicGad.xml | ||
+ | php maintenance/importDump.php --report 10 ../FTP/frMainFull.xml | ||
+ | |||
+ | sudo php maintenance/importImages.php ../FTP/frFiles | ||
+ | sudo chown -R www-data:www-data images/ | ||
+ | <source lang="sh"> | ||
+ | </source> | ||
+ | ==Wiki privé moyen français== | ||
+ | |||
+ | api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml | ||
+ | ;Sur LorExplor: | ||
+ | <source lang="sh"> | ||
+ | |||
+ | mkdir FTP | ||
+ | mkdir FTP/privFiles | ||
+ | |||
+ | cd fr | ||
+ | |||
+ | |||
+ | |||
+ | php maintenance/dumpBackup.php --current --filter=namespace:10,11 >../FTP/privTemplate.xml | ||
+ | php maintenance/dumpBackup.php --current --filter=namespace:2,3,4,5,6,7,8,9,12,13,14,15,102,103,108,109,828,829 >../FTP/privMisc.xml | ||
+ | php maintenance/dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/privWicGad.xml | ||
+ | php maintenance/dumpBackup.php --full --filter=namespace:0,1 >../FTP/privMainFull.xml | ||
+ | |||
+ | cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/privFiles/. | ||
+ | cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/privFiles/. | ||
+ | cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/privFiles/. | ||
+ | |||
+ | cd .. | ||
+ | |||
+ | cp -r docs FTP/. | ||
+ | |||
+ | tar -cvf FTP.tar FTP | ||
+ | </source> | ||
+ | |||
+ | ;Sur Wicri.demo: | ||
+ | php maintenance/importDump.php --report 10 ../FTP/privTemplate.xml | ||
+ | php maintenance/importDump.php --report 10 ../FTP/privMisc.xml | ||
+ | php maintenance/importDump.php --report 10 ../FTP/privWicGad.xml | ||
+ | php maintenance/importDump.php --report 10 ../FTP/privMainFull.xml | ||
+ | |||
+ | php maintenance/rebuildrecentchanges.php | ||
+ | php maintenance/initSiteStats.php --update | ||
+ | php maintenance/runJobs.php | ||
+ | |||
+ | sudo php maintenance/importImages.php ../FTP/privFiles | ||
+ | sudo chown -R www-data:www-data images/ | ||
+ | <source lang="sh"> | ||
+ | </source> | ||
+ | |||
+ | ==Wiki privé français== | ||
+ | ;Sur LorExplor: | ||
+ | <source lang="sh"> | ||
+ | |||
+ | mkdir FTP | ||
+ | |||
+ | |||
+ | cd fr | ||
+ | |||
+ | mkdir ../FTP/privFiles | ||
+ | |||
+ | php maintenance/dumpBackup.php --current --filter=namespace:10,11 >../FTP/privTemplate.xml | ||
+ | php maintenance/dumpBackup.php --current --filter=namespace:2,3,4,5,6,7,8,9,12,13,14,15,102,103,108,109,828,829 >../FTP/privMisc.xml | ||
+ | php maintenance/dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/privWicGad.xml | ||
+ | php maintenance/dumpBackup.php --full --filter=namespace:0,1 >../FTP/privMainFull.xml | ||
+ | |||
+ | cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/privFiles/. | ||
+ | cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/privFiles/. | ||
+ | cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/privFiles/. | ||
+ | |||
+ | cd .. | ||
+ | |||
+ | cp -r docs FTP/. | ||
+ | |||
+ | tar -cvf FTP.tar FTP | ||
+ | </source> | ||
+ | |||
+ | ;Sur Wicri.demo: | ||
+ | php maintenance/importDump.php ../FTP/privTemplate.xml | ||
+ | php maintenance/importDump.php ../FTP/privMisc.xml | ||
+ | php maintenance/importDump.php ../FTP/privWicGad.xml | ||
+ | php maintenance/importDump.php --report 10 ../FTP/privMainFull.xml | ||
+ | |||
+ | sudo php maintenance/importImages.php ../FTP/frFiles | ||
+ | sudo chown -R www-data:www-data images/ | ||
+ | <source lang="sh"> | ||
+ | </source> | ||
+ | |||
+ | ==Petit wiki français== | ||
+ | ;Sauvergarde: | ||
+ | php maintenance/dumpBackup.php --full > ../FTP/frAllFull.xml | ||
+ | |||
+ | cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/frFiles/. | ||
+ | cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/frFiles/. | ||
+ | cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/frFiles/. | ||
+ | |||
+ | ;Installation: | ||
+ | |||
+ | php maintenance/importDump.php --report 10 ../FTP/frAllFull.xml | ||
+ | |||
+ | sudo php maintenance/importImages.php ../FTP/frFiles | ||
+ | sudo chown -R www-data:www-data images/ | ||
+ | |||
+ | ==Petit wiki privé français== | ||
+ | ;Sauvergarde: | ||
+ | php maintenance/dumpBackup.php --full > ../FTP/privAllFull.xml | ||
+ | |||
+ | cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/privFiles/. | ||
+ | cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/privFiles/. | ||
+ | cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/privFiles/. | ||
+ | |||
+ | ;Installation: | ||
+ | |||
+ | php maintenance/importDump.php --report 10 ../FTP/privAllFull.xml | ||
+ | |||
+ | sudo php maintenance/importImages.php ../FTP/privFiles | ||
+ | sudo chown -R www-data:www-data images/ | ||
+ | |||
+ | ==Petit wiki allemand== | ||
+ | php maintenance/dumpBackup.php --full > ../FTP/deAllFull.xml | ||
+ | |||
+ | php maintenance/importDump.php --report 10 ../FTP/deAllFull.xml | ||
+ | |||
+ | php maintenance/rebuildrecentchanges.php | ||
+ | php maintenance/initSiteStats.php --update | ||
+ | php maintenance/runJobs.php | ||
+ | |||
+ | ==Petit wiki portugais== | ||
+ | php maintenance/dumpBackup.php --full > ../FTP/ptAllFull.xml | ||
+ | |||
+ | php maintenance/importDump.php --report 10 ../FTP/ptAllFull.xml | ||
+ | |||
+ | php maintenance/rebuildrecentchanges.php | ||
+ | php maintenance/initSiteStats.php --update | ||
+ | php maintenance/runJobs.php | ||
+ | |||
+ | ==Petit wiki anglais== | ||
+ | php maintenance/dumpBackup.php --full > ../FTP/enAllFull.xml | ||
+ | |||
+ | cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/enFiles/. | ||
+ | cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/enFiles/. | ||
+ | cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/enFiles/. | ||
+ | |||
+ | php maintenance/importDump.php --report 10 ../FTP/enAllFull.xml | ||
==Wiki moyen anglais== | ==Wiki moyen anglais== | ||
api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml | api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml | ||
+ | ;Sur LorExplor: | ||
+ | <source lang="sh"> | ||
+ | mkdir FTP | ||
+ | mkdir FTP/enFiles | ||
+ | |||
+ | cd en | ||
php maintenance/dumpBackup.php --current --filter=namespace:10,11 >../FTP/enTemplate.xml | php maintenance/dumpBackup.php --current --filter=namespace:10,11 >../FTP/enTemplate.xml | ||
Ligne 33 : | Ligne 217 : | ||
php maintenance/dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/enWicGad.xml | php maintenance/dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/enWicGad.xml | ||
php maintenance/dumpBackup.php --full --filter=namespace:0,1 >../FTP/enMainFull.xml | php maintenance/dumpBackup.php --full --filter=namespace:0,1 >../FTP/enMainFull.xml | ||
+ | |||
+ | cp images/1/*/* images/2/*/* images/6/*/* images/7/*/* images/a/*/* ../FTP/enFiles/. | ||
+ | |||
+ | cd .. | ||
+ | tar -cvf FTP.tar FTP | ||
+ | </source> | ||
+ | |||
+ | ;Sur Wicri.demo: | ||
+ | php maintenance/importDump.php --report 10 ../FTP/enTemplate.xml | ||
+ | php maintenance/importDump.php --report 10 ../FTP/enMisc.xml | ||
+ | php maintenance/importDump.php --report 10 ../FTP/enWicGad.xml | ||
+ | php maintenance/importDump.php --report 10 ../FTP/enMainFull.xml | ||
+ | <source lang="sh"> | ||
+ | </source> | ||
==Pour le pool== | ==Pour le pool== |
Version actuelle datée du 21 décembre 2022 à 10:04
Cette page concerne les migrations des wikis depuis le domaine lorexplor.istex.fr.
Sommaire
Création du nouveau wiki
- Vérifier les extensions du wiki initial
- Appliquer la procédure : Création d'un wiki version 1.31 sur le domaine wicri-demo.istex.fr
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
- Sur LorExplor
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
- Sur Wicri.demo
Wiki moyen français
api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml
- Sur LorExplor
mkdir FTP
mkdir FTP/frFiles
cd fr
php maintenance/dumpBackup.php --current --filter=namespace:10,11 >../FTP/frTemplate.xml
php maintenance/dumpBackup.php --current --filter=namespace:2,3,4,5,6,7,8,9,12,13,14,15,102,103,108,109,828,829 >../FTP/frMisc.xml
php maintenance/dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/frWicGad.xml
php maintenance/dumpBackup.php --full --filter=namespace:0,1 >../FTP/frMainFull.xml
cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/frFiles/.
cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/frFiles/.
cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/frFiles/.
cd ..
cp -r docs FTP/.
tar -cvf FTP.tar FTP
- Sur Wicri.demo
php maintenance/importDump.php --report 10 ../FTP/frTemplate.xml php maintenance/importDump.php --report 10 ../FTP/frMisc.xml php maintenance/importDump.php --report 10 ../FTP/frWicGad.xml php maintenance/importDump.php --report 10 ../FTP/frMainFull.xml
sudo php maintenance/importImages.php ../FTP/frFiles sudo chown -R www-data:www-data images/
Wiki privé moyen français
api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml
- Sur LorExplor
mkdir FTP
mkdir FTP/privFiles
cd fr
php maintenance/dumpBackup.php --current --filter=namespace:10,11 >../FTP/privTemplate.xml
php maintenance/dumpBackup.php --current --filter=namespace:2,3,4,5,6,7,8,9,12,13,14,15,102,103,108,109,828,829 >../FTP/privMisc.xml
php maintenance/dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/privWicGad.xml
php maintenance/dumpBackup.php --full --filter=namespace:0,1 >../FTP/privMainFull.xml
cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/privFiles/.
cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/privFiles/.
cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/privFiles/.
cd ..
cp -r docs FTP/.
tar -cvf FTP.tar FTP
- Sur Wicri.demo
php maintenance/importDump.php --report 10 ../FTP/privTemplate.xml php maintenance/importDump.php --report 10 ../FTP/privMisc.xml php maintenance/importDump.php --report 10 ../FTP/privWicGad.xml php maintenance/importDump.php --report 10 ../FTP/privMainFull.xml
php maintenance/rebuildrecentchanges.php php maintenance/initSiteStats.php --update php maintenance/runJobs.php
sudo php maintenance/importImages.php ../FTP/privFiles sudo chown -R www-data:www-data images/
Wiki privé français
- Sur LorExplor
mkdir FTP
cd fr
mkdir ../FTP/privFiles
php maintenance/dumpBackup.php --current --filter=namespace:10,11 >../FTP/privTemplate.xml
php maintenance/dumpBackup.php --current --filter=namespace:2,3,4,5,6,7,8,9,12,13,14,15,102,103,108,109,828,829 >../FTP/privMisc.xml
php maintenance/dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/privWicGad.xml
php maintenance/dumpBackup.php --full --filter=namespace:0,1 >../FTP/privMainFull.xml
cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/privFiles/.
cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/privFiles/.
cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/privFiles/.
cd ..
cp -r docs FTP/.
tar -cvf FTP.tar FTP
- Sur Wicri.demo
php maintenance/importDump.php ../FTP/privTemplate.xml php maintenance/importDump.php ../FTP/privMisc.xml php maintenance/importDump.php ../FTP/privWicGad.xml php maintenance/importDump.php --report 10 ../FTP/privMainFull.xml
sudo php maintenance/importImages.php ../FTP/frFiles sudo chown -R www-data:www-data images/
Petit wiki français
- Sauvergarde
php maintenance/dumpBackup.php --full > ../FTP/frAllFull.xml
cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/frFiles/. cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/frFiles/. cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/frFiles/.
- Installation
php maintenance/importDump.php --report 10 ../FTP/frAllFull.xml
sudo php maintenance/importImages.php ../FTP/frFiles sudo chown -R www-data:www-data images/
Petit wiki privé français
- Sauvergarde
php maintenance/dumpBackup.php --full > ../FTP/privAllFull.xml
cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/privFiles/. cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/privFiles/. cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/privFiles/.
- Installation
php maintenance/importDump.php --report 10 ../FTP/privAllFull.xml
sudo php maintenance/importImages.php ../FTP/privFiles sudo chown -R www-data:www-data images/
Petit wiki allemand
php maintenance/dumpBackup.php --full > ../FTP/deAllFull.xml
php maintenance/importDump.php --report 10 ../FTP/deAllFull.xml
php maintenance/rebuildrecentchanges.php php maintenance/initSiteStats.php --update php maintenance/runJobs.php
Petit wiki portugais
php maintenance/dumpBackup.php --full > ../FTP/ptAllFull.xml
php maintenance/importDump.php --report 10 ../FTP/ptAllFull.xml
php maintenance/rebuildrecentchanges.php php maintenance/initSiteStats.php --update php maintenance/runJobs.php
Petit wiki anglais
php maintenance/dumpBackup.php --full > ../FTP/enAllFull.xml
cp images/0/*/* images/1/*/* images/2/*/* images/3/*/* images/4/*/* ../FTP/enFiles/. cp images/5/*/* images/6/*/* images/7/*/* images/8/*/* images/9/*/* ../FTP/enFiles/. cp images/a/*/* images/b/*/* images/c/*/* images/d/*/* images/e/*/* images/f/*/* ../FTP/enFiles/.
php maintenance/importDump.php --report 10 ../FTP/enAllFull.xml
Wiki moyen anglais
api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml
- Sur LorExplor
mkdir FTP
mkdir FTP/enFiles
cd en
php maintenance/dumpBackup.php --current --filter=namespace:10,11 >../FTP/enTemplate.xml
php maintenance/dumpBackup.php --current --filter=namespace:2,3,4,5,6,7,8,9,12,13,14,15,102,103,108,109,828,829 >../FTP/enMisc.xml
php maintenance/dumpBackup.php --current --filter=namespace:900,901,902,903,2300,2301,2302,2303 >../FTP/enWicGad.xml
php maintenance/dumpBackup.php --full --filter=namespace:0,1 >../FTP/enMainFull.xml
cp images/1/*/* images/2/*/* images/6/*/* images/7/*/* images/a/*/* ../FTP/enFiles/.
cd ..
tar -cvf FTP.tar FTP
- Sur Wicri.demo
php maintenance/importDump.php --report 10 ../FTP/enTemplate.xml php maintenance/importDump.php --report 10 ../FTP/enMisc.xml php maintenance/importDump.php --report 10 ../FTP/enWicGad.xml php maintenance/importDump.php --report 10 ../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/