This article describes how to backup a functional, running IceWarp Linux server and restore the backup onto the new IceWarp server.
The new server, where the IceWarp is restored to, must also contain a fresh IceWarp installation including an installed database and configured connection.
BACKUP
IceWarp on Linux server is usually located here: /opt/icewarp
The backup script iw_cloud_backup.sh is in /opt/scripts/ on the server. If the script is not in previously mentioned location contact IceWarp support team who will provide the script.
If you have other than a standard IceWarp installation, inspect and adjust the backup script.
Run the backup script iw_cloud_backup.sh.
All the backups files are saved directly in the following folder: /opt/icewarp/backup/ or the connected network storage, depending on the script settings.
The files belonging to one backup are the files with the same timestamp and following name identifiers: cal, cnf, log and db_acc_acc, db_asp_as, db_dc_dc, db_eas_eas, dv_grw_gw, db_wc_wc.
RESTORE
The backup files are on the network storage or other dedicated backup location.
Copy the backup files from the network storage or a dedicated location to the new server - /opt/icewarp/backup/.
Stop all Icewarp services.
$ /opt/icewarp/icewarpd.sh –stop all
Extract all cal, cnf and log archives and copy files from each archive to the new IceWarp installation folder /opt/icewarp/. Select overwrite.
To attach the databases: db_acc_acc, db_asp_as, db_dc_dc, db_eas_eas, dv_grw_gw, db_wc_wc, extract each database archive separately.
The database file is extracted into the same folder.
Before importing the database, log in to the database and turn the global foreign key off.
Then import each database file separately to the fresh database on the new IceWarp server.
After the import of all database files is finished, inspect the database content.
Start all IceWarp services.
$ /opt/icewarp/icewarpd.sh –start all
IceWarp server restore is now finished.
Comments
1 comment
@basket random If the accounts were already present in the file system, they would be replicated along with the configuration folder when it was moved.
Please sign in to leave a comment.