Table of Contents [-]

Introduction #

This article outlines how to backup your Liferay installation

Steps #

1. Take 'liferay portal' database dump using following command from command prompt ( Make sure you are in bin directory of MySQL installation) - <Prompt>mysqldump -u <username> -p<password> db_name (make sure there is no space between -p and your DB password) 2. Zip your lucene and jackrabit directories, (check their location in your or portal-ext-properties file) - by default you will find it on C:/Document and setting/<User>/liferay (On Windows) 3. Move database dump and lucene/jackrabit zips to backup server 4. Shutdown backup server 5. Restore database, override lucene/jackrabbit directories 6. Start backup server.

0 archivos adjuntos
27060 Accesos
Promedio (2 Votos)
La valoración media es de 3.0 estrellas de 5.
Respuestas anidadas Autor Fecha
Just wanted to chime in and say that by default... Scott Gibson 20 de octubre de 2009 9:50
What guarantees are there that your Lucene... Mark Doerr 27 de agosto de 2010 11:05

Just wanted to chime in and say that by default on Linux, the lucene and jackrabbit directories are under /opt/liferay-portal-<version>/data. For example, mine is /opt/liferay-portal-5.2.3/data. I just tar and gzip that data directory and then ftp to an offsite backup.

Furthermore, the backup can be performed via a GUI by utilizing the MySQL Administrator tool that is available for free from for many different operating systems. It can also be set to schedule the backups for automation purposes.
Publicado el día 20/10/09 9:50.
What guarantees are there that your Lucene indexes and DB are consistent? Isn't Lucene constantly indexing?
Publicado el día 27/08/10 11:05.