Scripts : Asterisk 1.4 : Backups

These scripts will only run with PBX In A Flash ISO version 1.2 and 1.3 with Asterisk 1.4. If you use it on "other pbx" systems you may have problems.

Asterisk 1.4 Daily Backups

Here is a short script I use every day in my commercial installs. It will run the FreePBX backup script, Dump MySQl, and optionally copy it all via ftp, SMB, or onto a local USB flash drive.

Requirements

You will need several items for this script to work

  • A USB Flash Drive (I am using a 16gb Drive)
  • Access to an ftp account (if used)
  • Share on a Windows/Samba server
  • Working PBX in a Flash system only. This script will not work on any other PBX systems!

What does this get me?

The daily-backup.cron will provide you with a reliable way to make local and remote backups of key configuration files and databases. It will back up to multiple destinations both local and remote. Good IT practices dictate you backup up files off site if possible. Is this a complete backup solution? NO! You really need to invest in a whole disk backup program also. A whole disk backup script will soon be released.

Also there is no complete script to run as of yet to restore all of the files and databases. Thus you will have to restore using FreePBX and some mysql commands for the moment.

Also this script should not be used in a mission critical production environment without extensive testing of it on your particular hardware and network environment. A hard disk failure is no time to find out that there is a problem restoring things.

Installation

Due to the complexity of the installation and configuration you need to download and print the manual and then follow it. Have a look below or click HERE.

Documentation

Script Creator: Tom King

We have opted to put the complete install and configuration guide into a pdf file for your perusal. We recommend you download this pdf file and print it. There are extensive screen captures and tables to help you get this working.