In order to backup&restore PBXware VPS from SERVERware 3 & 4 to the off-site PBXware you should follow these steps:
SSH to the SERVERware Host
Stop LXC with
/usr/bin/lxc-stop -n VPSNAME
Navigate to opt VPS directory with:
cd /home/lxc/VPSNAME/rootfs/opt/
Tar the httpd and pbxware with:
tar czvf backup.tgz httpd pbxware
Copy this backup to the off-site with scp or rsync
Example of SCP command running from off-site PBXware:
scp -P 2222 swadmin@192.168.1.20:/home/lxc/VPSNAME/rootfs/opt/backup.tgz /opt
SSH to the off-site PBXware
Navigate to the /opt directory with:
cd /opt
Stop PBXware services with:
/opt/pbxware/sh/stop
/opt/pbxware/httpd/sh/stop
Unpack backup with:
tar --numeric-owner -xvf PATH_TO_BACKUP where PATH_TO_BACKUP is a full path to your backup file.
Start PBXware services with:
/opt/pbxware/sh/start
/opt/httpd/sh/start
NOTE: Please make sure that everything is working properly before using the migrated VPS as a production system.
Any issues that may arise on the migrated VPS as a result of missed steps during the procedure will not be supported.