6 oct 2010

Backup and restore Openfire

Backing up and restoring Openfire




The following is assumed:
  • Openfire is configured to store data in MySQL database
  • Openfire is installed in /opt/openfire/

Backup

All you have to do is dump the database and copy Openfire configuration file openfire.xml
  1. Dump the database
    root@linux# mysqldump -p openfire > /backup/openfire_db.sql

  2. Copy the configuration file
    root@linux# cp /opt/openfire/conf/openfire.xml  /backup/openfire.xm

Restore

Make a new installation of Openfire with MySQL as backend data storage. Restore the database with mysql, replace openfire.xml with the backup file, and restart Openfire service.


  1. restore database
    root@linux# mysqldump -p < /backup/openfire_db.sql

  2. restore openfire.xml
    root@linux# cp /backup/openfire.xml /opt/openfire/conf/openfire.xml

  3. start Openfire
    root@linux# service openfire start

No hay comentarios: