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
- Dump the database
root@linux# mysqldump -p openfire > /backup/openfire_db.sql
- Copy the configuration file
root@linux# cp /opt/openfire/conf/openfire.xml /backup/openfire.xm
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.
- restore database
root@linux# mysqldump -p < /backup/openfire_db.sql
- restore openfire.xml
root@linux# cp /backup/openfire.xml /opt/openfire/conf/openfire.xml
- start Openfire
root@linux# service openfire start
No hay comentarios:
Publicar un comentario