FR EN

TUTORIAL: Back up PBXware and restore on another server

Estimated reading: 2 minutes

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.

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

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

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
Share

TUTORIAL: Back up PBXware and restore on another server

Or copy the link below

CONTENT