I have 2 identical FreePBX servers where A is backed up to B via ssh. It is used as a warm spare. However, B is at a different location and using a failover redundant trunk so it has to have a different trunk IP (the rest of the info stays the same). I would like to have the backup run automatically at midnight however when the backup occurs, I have to manually change the trunk IP back to the correct one.
Is there an easy way to run a post script after the backup to do this automatically? If not, are there any thoughts on how I can accomplish this?
Thanks for any input!