Difference between revisions of "Projects:Setting up the wiki"
From Wicri pool V1.31 Démo.Istex
(→Moving the wiki) |
(→Moving the wiki) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
* Templates : done | * Templates : done | ||
* Categories : done | * Categories : done | ||
+ | |||
+ | A examiner : | ||
+ | Wicri Media:Community Portal | ||
+ | Wicri Media:Wicri Base | ||
+ | |||
;Namespace file: | ;Namespace file: | ||
<source lang="sh"> | <source lang="sh"> | ||
php dumpBackup.php --current --filter=namespace:6 > ../../FTP/poolFiles.xml | php dumpBackup.php --current --filter=namespace:6 > ../../FTP/poolFiles.xml | ||
</source> | </source> | ||
+ | |||
==Images== | ==Images== | ||
===Premier essai=== | ===Premier essai=== | ||
Line 45: | Line 51: | ||
tar -xvf 1.tar | tar -xvf 1.tar | ||
mkdir files1 | mkdir files1 | ||
− | cp 1/*/* files1/.cd ../pool | + | cp 1/*/* files1/. |
+ | cd ../pool | ||
sudo php maintenance/importImages.php ../FTP/files1 | sudo php maintenance/importImages.php ../FTP/files1 | ||
sudo chown -R www-data images/* | sudo chown -R www-data images/* | ||
sudo chgrp -R www-data images/* | sudo chgrp -R www-data images/* | ||
</source> | </source> |
Latest revision as of 14:08, 30 August 2017
Moving the wiki
WIKI=http://ticri.univ-lorraine.fr/wicri.pool
WIKI_TARGET=https://lorexplor.istex.fr/Wicri/Wicri/pool
- Templates : done
- Categories : done
A examiner :
Wicri Media:Community Portal Wicri Media:Wicri Base
- Namespace file
php dumpBackup.php --current --filter=namespace:6 > ../../FTP/poolFiles.xml
Images
Premier essai
Sous /pool
php maintenance/dumpUploads.php | xargs tar cf ../FTP/poolImages.tar
cp -r images/0 ../FTP/0 tar cvf 0.tar 0
2073 wget http://ticri.univ-lorraine.fr/Wicri/Wicri/FTP/0.tar 2074 tar -xvf 0.tar 2075 ls 0 2076 ls 0/00 2077 mkdir files0 2078 cp 0/*/* files0/. 2079 ls files0 2080 cd .. 2081 cd pool/ 2082 sudo php maintenance/importImages.php ../FTP/files0 2083 sudo chown -R www-data images/* 2084 history
Procédure répétitive
- Sur machine Ticri/UL
Répertoire Wicri/Wicri/FTP
cp -r ../pool/images/1 1
tar cvf 1.tar 1
- Sur machine LorExplor/ISTEX/INIST
cd FTP
wget http://ticri.univ-lorraine.fr/Wicri/Wicri/FTP/1.tar
tar -xvf 1.tar
mkdir files1
cp 1/*/* files1/.
cd ../pool
sudo php maintenance/importImages.php ../FTP/files1
sudo chown -R www-data images/*
sudo chgrp -R www-data images/*