Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Create topic

...

At the prompt type: sudo -u asterisk ssh-copy-id -i  /varhome/lib/asterisk/.ssh/id_rsa.pub root@PrimaryServerIP root@PrimaryServerIP And enter the password when prompted. 

...

At the prompt type: ssh -i /home/asterisk//.ssh/id_rsa.pub root@PrimaryServerIP

...

You should now see the following:

We will now define the primary PBX as a new server for this warm spare server to reach into and perform the backup on.

Click on the “Servers” option on the right side and it will bring up a page like this

Image Added

Click on the "New SSH Server" option so we can setup the information on where and how to connect to the primary PBX to get the backup data from.

Image Added

We are going to define the following fields for this server and press the “Save” button.

  • Server Name- We will call it “Primary PBX”.
  • Hostname- Define the IP address or FQDN of the primary server.
  • Port- By default we use port 22 for SSH.
  • User Name- root is the username we setup for our share keys.
  • Key- This is the path to the SSH Key that we created earlier of /home/asterisk/.ssh
  • Click the “Save” button.

Now that we setup the primary server location information in the backup module we will create an actual backup job by clicking on the “Backups” option on the right side of the screen. which brings us back to the landing screen

Image Added

Click on "New Backup"

Image Added

  • The Name should be something representative of the task. We will call it "Nightly Warm Backup"
  • Next Drag over the template(s) from "Templates" to "Backup Items" For this task we will drag over "Full Backup" and "Exclude Backup Settings"
  • For "Backup Server" Select your primary PBX in the drop down.
  • A "Restore Here" Check box will appear. Check the box. 
  • 2 additional boxes will appear
    • "Disable registered trunks" This option is only needed if you have SIP trunks that are registered with your carrier or the two systems will compete for the trunk registration.
    •  "Apply Configs" Check this box
     
  • If you want to also store a copy of the backup file on this server you can pick the “Local Storage” option under the “Storage” location by dragging it over.
  • Set "Run Automatically" to "Daily" This  will cause the script to run each day at midnight.
  • Press "Save" when done
  • After "saving" a new button will appear that says "and Run". You can now click this button to run the backup job and test all the settings. This may take a while.

Failing over to backup server

In the event that you would like to make your backup server become the production server we need to perform a few tasks.

Network

We need to update the IP Address of the backup box to be the IP Address that the Primary PBX was so the phones and trunks know how to register to it.

Login to the web UI of the warm spare

  • on the top menu click Admin
  • In the drop down click System Admin

You should see the page below

Image Added

On the right click "Network Settings" you will then see the following:

Image Added

From here you can change the IP address of the backup server to be the same IP that your production server was.

Info
titleAPPLICATION NOTE

Don't forget to remove the production server from the network before Updates changing the IP address here or you will have an IP address conflict.