Difference between revisions of "Projects:Setting up the wiki"
From Wicri pool V1.31 Démo.Istex
(→Moving the wiki) |
|||
| Line 11: | Line 11: | ||
php dumpBackup.php --current --filter=namespace:6 > ../../FTP/poolFiles.xml | php dumpBackup.php --current --filter=namespace:6 > ../../FTP/poolFiles.xml | ||
</source> | </source> | ||
| − | + | ==Images== | |
| + | ===Premier essai=== | ||
Sous /pool | Sous /pool | ||
<source lang="sh"> | <source lang="sh"> | ||
| Line 31: | Line 32: | ||
2083 sudo chown -R www-data images/* | 2083 sudo chown -R www-data images/* | ||
2084 history | 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> | ||
Revision as of 08:32, 6 July 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
- 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/*