PROBLEM
I want to move my Atmail Server + WebMail installation to another server.
ENVIRONMENT
- On-Premises Server Installations: Version 7.0 > Current Version
CAUSE
Migration requirement.
RESOLUTION
This guide will take you through the steps to migrate your Atmail 7 Server + WebMail Software to another server.
On the old server
Dump the MySQL database
mysqldump -u root -p [atmail-database-name] > /usr/local/atmail/atmail7-dump.sql
On the new server
Copy the entire /usr/local/atmail/ folder to the new server.
rsync -e ssh -avr root@[old-server-ip-address]:/usr/local/atmail/ /usr/local/atmail/
On the new server
Import the Atmail database.
Log into MySQL and create new database to insert the dump into.
mysql -u root -p mysql> create database atmail7;
Log out of MySQL and import the dump.
mysql -u root -p atmail7 < /usr/local/atmail/atmail7-dump.sql
On the new server
Run the server install script and reinstall all services.
php server-install.php
Comments