in

Overview

You can configure a regular backup schedule to ensure that you
have a copy of your Asterisk and freePBX configuration, voicemail and
CDR records. You can also restore a previous backup, in case of data
loss or a major configuration fault. Backups are stored on the file
system at /var/lib/asterisk/backups. You should make a point of making
an offline copy of important backups.

Add Backup Schedule

  • Schedule Name: Give this backup a friendly name (e.g.
    "Daily" or "Voicemail") to accurately identify what you're backing up.
    This will make future restores easier.
  • Voicemail: Enable this if you want to include voicemail
    messages in this backup. This could seriously increase the size of your
    backups because you are backing up potentially large audio files.
  • System Recordings: Enable this if you want to backup custom
    System Recordings you may have created for a Digital Receptionist or
    Queue. Again, this could increate the size of your backups because of
    the size of some audio files.
  • System Configuration: Enable this option to backup your
    Asterisk and freePBX configuration data, including the MySQL and
    Asterisk databases. We recommend this be enabled for all backups.
  • CDR: Enable this option to backup your Call Detail Records.
  • Operator Panel: Enable this option to backup the Flash Operator Panel configuration.

Run Schedule

You can chose a pre-configured schedule from the drop-down, or
configure your own schedule using the Minutes, Hours, Days, Months and
Weekdays select boxes. The pre-configured options are: Daily (at
Midnight), Weekly (on Sunday at Midnight), Monthly (on the 1st at
Midnight) or Yearly (on the 1st January at Midnight).

Restore from Backup

This will list all the backups that are currently on your system
(located at /var/lib/asterisk/backups). Click on the backup you wish to
restore.

Upgrading from A@H:

Upgrading from an older version of A@H to freePBX causes restores to STOP WORKING. You need to totally clean out your /var/www/html/admin directory first, then re-run install_amp.

cd /usr/src/freepbx

rm -rf /var/www/html/admin

./install_amp

After you've restored, check to confirm you haven't lost anything.
*** NOTE ***
This module is NOT backwards/forwards compatible at this time. ONLY restore backup sets to the same revision. Meaning, don't install a fresh 2.3.0 system and try to restore a 2.2.1 backup set as you will have issues.

*** NOTE ***
I have tested a revision of this. Restoring an old version of FreePBX (2.2.X)to the newest version of FreePBX 2.4.X.

1. install your new system with FreePBX 2.4.0
2. install the Backup / Restore module
3. restore your old backup (I always restored everything for testing)
4. SSH into /usr/src/tbm-pbxconfig-5.0.0
5. run ./install_amp *this will fix all the web interface problems and the modules that were hosed.
5. Do not hit the orange bar yet.
6. Update all the modules, check your extensions then hit the orange bar and reload.

the system should be close to perfect.

This has only been tested. Long term testing has not been done.


Related Content


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

when was this written?

matthew74's picture

It would be helpful if the date this article was posted was in the description. It becomes difficult to find relevant content when there are no dates


I totally agree.

mcdeeiis's picture

Please include the date of the article.


Restore has issues with callerid

nuronce's picture

Hi, I have had this happen each time I restore from the high availability backup (not "Restore to this server") with a manual restore.

Everything is fine, the data is there but CallerID is not sent to the dialed number. I edit the extension, add a space/remove a space from the callerID click apply and it is fine. So the data is there but something is not getting updated in the restore.


Additional options not documented 2.7.0.10

derekrv's picture

Looking at the setup screen for backups, there are a number of additional sets of settings (FTP settings, SSH Settings, Email settings) that aren't explained.

Thinking that the ftp settings might upload to another machine, I duly filled them out with login and file location information on one of our NAS servers. Didn't do anything useful.

Anybody know how these are supposed to work ?

Or should I just use cron and rsync the configuration information I want to the NAS box ?


bump

luckman212's picture

Hi I have the same question as the previous poster (derekrv) -- are there working options for backing up to a remote site via FTP, SSH or what-have-you? SSH would be the preferred method (or SFTP) as regular FTP would be quite insecure. I am using Freepbx 2.8 but I plan to switch to 2.9 shortly.


Incorrect

Dean.Collins's picture

this information is incorrect (at least it is by default on my machine)

On my machine it stored it in /var/spool/asterisk/backups
and NOT in the /var/lib/asterisk/backups folder as this article leads you to believe.

Am i incorrect?


Cannot Remove Templates

xptpa2020's picture

I created a server for FTP file storage on our remote file server. This will be used for each of our PBX boxes to backup up their configs to. I then created a backup template called full system backup, to backup everything on the box, minus temp files and other non-essentials. I then noticed it created duplicates when I hit save, and now I cannot delete the template. I click on delete and it takes me back to the new template view, but the template is still in the list on right. Moreover, my new template does not have any of the information I gave it to back up- SQL DBs, Ast DB, and root / backup, minus *.tmp, /tmp/, and some other dirs.

I am running latest version (as of 2/28/2012) of FreePBX and all modules.