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 添付ファイル
28587 参照数
平均 (2 投票)
平均評価は3.0星中の5です。
コメント
コメント 作成者 日時
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/08/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/08/27 11:05