Child pages
  • Copy of Revert To Windows Backup
Skip to end of metadata
Go to start of metadata

La mayoría de los usuarios querran realizar copias de seguridad de LAMS en algun momento.Si maneja un servidor que los estudiantes utlizan de una manera activa, deberían hacerse copias de LAMS regularmente. Aún si está utilizando LAMS en su portátil para desarrollar diseños de aprendizage antes de importarlos a un servidor compartido, cuando actualice LAMS a una versión superior puede que quiera realizar copias de seguridad..

Para facilitar el proceso, hemos creado utilidades para realizar copias de seguridad y restaurar LAMS, que son compatibles con Windows. Esto le permite realizar copias de LAMS si está utilizando un servidor LAMS estándar configurado por el instalador. 

Cuando actualice LAMS con el Windows upgrader, este tratará de realizar una copia de Seguridad. Si lo hace, y en caso de que la actualización fracasare, se puede usar la utilidad de Restaurar para volver a su versión anterior de LAMS.

Sin embargo, si utiliza Windows con _MySQL en un servidor diferente,_el proceso de hacer una copia de seguridad y restaurar es más complicado, ya que tendrá que hacerse manualmente. De ser este su caso, por favor vease la página Other Backup.

Backing Up LAMS

First work out how much space the backup will need. All of the LAMS directory will be copied and the database will be dumped. Get the size of your LAMS folder(normally c:\lams) by selecting the folder in Explorer and doing File, Properties then find some somewhere with enough disk space for a complete copy of the LAMS directory plus the database backup.

Initially the database backup is less than 1MB big, but as you use LAMS it will need more space. You will need to try to guess how much space the backup will use based on how big it was last time the backup was done. The database backup will always get bigger - it won't get smaller!

Upgrading LAMS

If you are upgrading LAMS, the installer will prompt you to backup your LAMS installation. If at all possible backup LAMS as this will allow you to go back to your old version if something goes wrong. The backup will be placed on the same drive as your LAMS folder (normally the C:\ drive), so make sure there is enough space that drive.

Running your own backup

In between upgrades, you will probably want to run your own backup. Follow these steps.

  • Find somewhere with enough space for your backup. It doesn't have to be on your C:\ drive - it can be anywhere on your computer.
  • The LAMS folder contains a utility "LAMS Backup" (lams-backup.exe). This was added in LAMS 2.0.3. Run this program.
  • You will be asked whether or not you want to shutdown LAMS. If you can shutdown LAMS then we can do a "cold backup", which is generally considered safer than a backup done with LAMS running (as no one can be changing anything while you are doing the backup). If it isn't possible to shutdown, the backup should work but there is a small chance that extra files will be backed or the database won't contain all the changes that a user is halfway through doing while the backup runs.
  • The backup utility will suggest a name and a location for the backup directory. Change this to wherever you have enough disk space for the backup and change the name if you wish to something that makes sense to you. It will default to naming the backup based on the LAMS version and the current date and time.
    The instructions below assume that LAMS is installed in c:\lams, the database name is lams2 and the backup directory is something like c:\lams-backup-200703030900.bak. You will need to replace these values with your own directory names.

Wildfire chat server

Backing up Wildfire should also be part of your backup strategy. It contains the logs of chat activities within LAMS. Refer to this page for more details.

Restoring LAMS

Restore Utility

Restoring either from an upgrade or from a backup you have done by running the backup utility can be done via the Restore utility.

This restore utility will completely delete the current LAMS directory, so if there were any log files that you wanted to send to the support staff then do that before running the Restore. 

  • Shutdown LAMS. You must shutdown LAMS - you cannot do the restore with people using LAMS.
  • The LAMS folder contains a utility "Restore previous LAMS version" (lams-restore.exe). This was added in LAMS 2.0.3. Run this program.
  • If you didn't shutdown LAMS before running the Restore program, it will prompt you to shutdown LAMS.
  • It will ask you for the directory that contains the backup. Select the directory and click "Restore LAMS". This will start the restore. There are a lot of files to copy, so it might take a while.
  • Once it is finished, you can start up LAMS as usual.

    May need to run the executable from the backup directory

    We sometimes found that the running the lams-restore.exe from the c:\lams directory doesn't restore all the files or the database properly. If you run the restore and end up with an empty database or you try to run LAMS and get the error "Could not start LAMSv2 service: [SC] StartService FAILED 3: The system cannot find the path specified" then you have this problem.

    It is very easy to fix. Copy lams-restore.exe to the backup directory (e.g. C:\lams-2.0.3-200706221144.bak) then run lams-restore.exe from the backup directory. We find this works every time!

    We are working on a fix for this problem.

  • No labels