Difference between revisions of "Projects:Setting up the wiki"
From Wicri pool V1.31 Démo.Istex
(Created page with "==Moving the wiki== <source lang="sh"> </source>") |
(→Moving the wiki) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Moving the wiki== | ==Moving the wiki== | ||
<source lang="sh"> | <source lang="sh"> | ||
+ | WIKI=http://ticri.univ-lorraine.fr/wicri.pool | ||
+ | WIKI_TARGET=https://lorexplor.istex.fr/Wicri/Wicri/pool | ||
+ | </source> | ||
+ | |||
+ | * Templates : done | ||
+ | * Categories : done | ||
+ | |||
+ | A examiner : | ||
+ | Wicri Media:Community Portal | ||
+ | Wicri Media:Wicri Base | ||
+ | |||
+ | ;Namespace file: | ||
+ | <source lang="sh"> | ||
+ | php dumpBackup.php --current --filter=namespace:6 > ../../FTP/poolFiles.xml | ||
+ | </source> | ||
+ | |||
+ | ==Images== | ||
+ | ===Premier essai=== | ||
+ | Sous /pool | ||
+ | <source lang="sh"> | ||
+ | php maintenance/dumpUploads.php | xargs tar cf ../FTP/poolImages.tar | ||
+ | </source> | ||
+ | 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 | ||
+ | <source lang="sh"> | ||
+ | cp -r ../pool/images/1 1 | ||
+ | tar cvf 1.tar 1 | ||
+ | </source> | ||
+ | ;Sur machine LorExplor/ISTEX/INIST: | ||
+ | <source lang="sh"> | ||
+ | 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/* | ||
</source> | </source> |
Latest revision as of 15: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/*