Not Logged in - No Account?

Don't have an account? Registering an account with us allows you to post to the forums, easily track new posts, subscribe to threads, pm (private message) other forum members, and receive periodic news letters (you can opt out if you desire). Once you are logged in this message will no longer appear. If you don't have an account, you can create one by registering here. Lost your password, request a new password. We respect your privacy which means we collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for full details.


Backup and Restore

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.


Comment viewing options

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

backup and restore

fubar101's picture

WIll the backup and restore function be able to restore a freepbx to its original configuration? Di I need to backup any other files? What about the zapata.conf files ? Will voice files also be backed up or do i need to do it manually also?


Backup/Restore

mhawley's picture

I have a newly installed version of FreePBX 2.3.1.0 up and running.
All functions appear to be working normally on an SIP system.
When I run a Backup set to Now and hit Submit, the system appears to be doing something for several seconds. However, no file shows up in /var/lib/asterisk/backups directory.

How can I find out where the command chain is failing?


no /var/lib/asterisk/backups in my system

orenyny's picture

Hi,

I have backed up my system, but can't restore from the above path as it does not exist in my system. Where can I find it ?

Thanks.


Backup Module Restore Process...

inclind_trey's picture

Just an FYI that when I create a backup of my FreePBX data (with every option selected) and restore that data, I must first restore ONLY the "system configuration" data. Then, I am able to restore the whole backup afterwards. Otherwise, by selecting the whole backup first, I receive the following error:

"The section you requested does not exist or you do not have access to it."

You will also notice broken modules on the status page too...

By the way, my production system is a Trixbox 2.6.0 (from which I created the backup) and my development system is a Trixbox 2.6.1 (which I restored to).

So, as a work around, just restore the "system configuration" data first!