TUTORIAL: Back up PBXware and restore on another server
As part of the maintenance or migration of a telephony infrastructure, it is essential to be able to perform a full backup of PBXware and of the restore on another server securely.
Important note
The backup must be done from the command line, because the services must be stopped to ensure full data consistency, particularly MySQL and Asterisk configuration files.
Backup on the source server
1. Log in via SSH to the PBXware server on which you want to perform the backup:
ssh root@IP_DU_SERVEUR_SOURCE 2. Navigate to the /opt folder:
cd /opt 3. Stop all services related to PBXware:
/opt/pbxware/sh/stop /opt/httpd/sh/stop 4. Create a tar file containing the PBXware directories:
tar --numeric-owner -czvf backup.tgz httpd pbxware 5. Check for the presence of your backup.tgz backup file:
[root@192.168.1.10 opt]# ls backup.tgz httpd pbxware redis sipprot Restoring on the new server
1. Log in via SSH to the PBXware server on which you want to restore the backup
ssh root@IP_DU_SERVEUR_DESTINAON 2. Navigate to the /opt folder
cd /opt Information
Be sure to completely delete the pbxware or httpd directories if they exist in the /opt directory of the new server.
3. Retrieve the backup.tgz file previously created on the source server with the rsync command:
rsync -avz root@IP_PBXWARE_SOURCE:/chemin/source /chemin/destination rsync -avz root@192.168.1.10 /opt/backup.tgz /opt Tip
It is also possible to use the WinSCP utility to perform the download and then the import of the file.
4. Unzip the backup file
tar --numeric-owner -xvf backup.tgz 5. Once the restore is complete, start the services:
/opt/pbxware/sh/start /opt/httpd/sh/start Important information
If the public IP address of your new instance changes, please contact our support in order to proceed with the reset of the IP address associated with your license.

