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 portal.properties 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 附件
28568 查看
平均 (2 票)
满分为 5,平均得分为 3.0。
评论
讨论主题回复 作者 日期
Just wanted to chime in and say that by default... Scott Gibson 2009年10月20日 上午9:50
What guarantees are there that your Lucene... Mark Doerr 2010年8月27日 上午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 mysql.com for many different operating systems. It can also be set to schedule the backups for automation purposes.
在 09-10-20 上午9:50 发帖。
What guarantees are there that your Lucene indexes and DB are consistent? Isn't Lucene constantly indexing?
在 10-8-27 上午11:05 发帖。