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 Attachments
Average (2 Votes)
The average rating is 3.0 stars out of 5.
Threaded Replies Author Date
Just wanted to chime in and say that by default... Scott Gibson October 20, 2009 9:50 AM
What guarantees are there that your Lucene... Mark Doerr August 27, 2010 11:05 AM

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.
Posted on 10/20/09 9:50 AM.
What guarantees are there that your Lucene indexes and DB are consistent? Isn't Lucene constantly indexing?
Posted on 8/27/10 11:05 AM.