Restauración del sitio

De MoodleDocs
Revisión del 13:51 13 jun 2014 de German Valero (discusión | contribs.) ({{Actualizar}})

Esta página necesita actualizarse con la información existente en la documentación vigente/moderna/actualizada en el idioma inglés original para Moodle. Se le sugiere al lector que consulte la página original en idioma inglés cuyo enlace está al fondo de esta página. y que, por favor, actualice esta información y quite la plantilla {{Actualizar}} cuando haya terminado.     (otras páginas pendientes de actualizar)


Vea https://docs.moodle.org/27/en/Site_restore

Moodle 2.x

Si Usted ha seguido las instrucciones para Copia de seguridad del sitio y creó una copia de seguridad (resplado) de un sitio Moodle, Usted puede necesitar ahora conocer cómo restaurar el respaldo del sitio que creó.

Hay tres áreas que pueden restaurarse individualmente o juntas:

  • Código de Moodle
  • Archivos subidos o creados de Moodle
  • Base de datos de Moodle - MySQL, PostgreSQL u otra

La localización y los nombres de estas áreas pueden encontrarse en el archivo de configuración config.php.


Restauración por línea de comando (Linux)

Here is a set of basic steps that make up the restore process.

1. Rename the original Moodle directory to something different (so you still have it) and copy the backed up Moodle directory or a newly downloaded Moodle directory in its place.

2. If you are running MySQL, a backup of the database should be a .sql, .gz or .tar.gz file. If it is .tar.gz or .gz you need to extract it until it is an sql file.

tar -xzvf moodlesqlfile.tar.gz

3. If you are running mysql, import the SQL file back into a newly created database on the MySQL server. Be careful here, some backups try to import right back into the same working database that Moodle is connected to. This causes database problems that damage a Moodle installation. The best thing to do is make a new database, restore the backed up database into it, and change the Moodle config.php file to connect to this new database (this way you still have the original database).

Once you have created the new database:

mysql -p new_database < moodlesqlfile.sql

For other databases, follow their instructions for restoring a backup.

Tools for site backup and restore

  • phpMyAdmin
  • MySQLdump

Tools for backing up data files

Restauración con phpMyAdmin

Restoring a backup of a MySql database

  1. Open the database to restore
  2. Click the SQL tab.
  3. On the "SQL"-page , unclick the show query here again.
  4. Browse to your backup of the database.
  5. Click Go.

Vea también