Exportar - Importar wiki

Exportación del wiki

Si queremos exportar la base de datos del wiki (por defecto es wikidb):

mysqldump wikidb -u root -p > backupwiki.sql

También deberíamos hacer copia de seguridad del fichero /var/www/wiki/LocalSettings.php y del de imágenes, /var/www/wiki/images/.

Importación del wiki

Nos conectamos al servidor mysql:

mysql -u root -p 

Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 132
Server version: 5.0.67-0ubuntu6 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>   use wikidb
source backupwiki.sql

Y sobreescribimos el fichero LocalSettings.php o vemos las diferencias con el nuevo, con el comando diff.
Y copiamos las imágenes en el directorio /images/

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License