HOWTO Backup from Shell

From Bicom Systems Wiki


Standalone PBXware

To backup the PBXware system from shell:

  • Login to your PBXware system shell as a root user
  • Navigate to the /opt directory
cd /opt
  • Stop services
 /opt/pbxware/sh/stop
 /opt/httpd/sh/stop
  • Create tar file
 tar --numeric-owner -czvf backup.tgz httpd pbxware
  • Start the services
 /opt/pbxware/sh/start
 /opt/httpd/sh/start

SERVERware 1.x VPS

IMPORTANT: SERVERware 1.x has reached its END OF LIFE and it is no longer supported

To backup PBXware VPS from shell on SERVERware 1.x platform:

  • Login to your SERVERware system shell as a root user
  • Stop the VPS you would like to backup
vserver YourVPSname stop
  • Navigate to the /opt folder inside your VPS
cd /home/vservers/YourVPSname/opt/
  • Create tar file
 tar --numeric-owner -czf backup.tgz httpd pbxware
  • Start the VPS
vserver YourVPSname start

In case you are not sure what exactly is your VPS named, please use this command:

vps-list

Output should look like this:

Found 2 VPSes:

#    | NAME         | IP                     | STATUS   | UPTIME          | CONTEXT  | PROCESSES  | FAILO
     |              |                        |          |                 |          | 
vps  | PBXware1     | eth0:192.168.1.11/24   | running  | 15 days, 09:11  | 934      | 162        | no
     |              |                        |          |                 |          |            | 
vps  | PBXware5     | eth0:192.168.1.15/24   | running  | 15 days, 10:35  | 980      | 169        | no
     |              |                        |          |                 |          |            | 


Replace YourVPSname with exact NAME for the VPS you would like to create backup for.

NOTE: Make sure no active calls are present before stopping the servers.