I HAVE A DREAM Incredible Backup Migration to New Linux Platform

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
One of our key objectives for the new GPL2 Incredible PBX 11 builds was the ability to migrate from one Linux platform to another seamlessly.

Now you have complete Platform Independence and can move between CentOS 6.5 and 7, Ubuntu 14, and Raspbian on the Raspberry Pi.

Incredible PBX on Ubuntu 14 to Incredible PBX on CentOS 6.5 or 7

NOTE: Asterisk 11 and FreePBX 2.11 must be running on BOTH platforms!

1. Run /root/incrediblebackup on your Incredible PBX for Ubuntu 14 platform.

2. Copy the backup image from /tmp to another place (like your desktop).

3. Install Incredible PBX on the CentOS 6.5/7 platform by following the Nerd Vittles tutorial.

4. Copy your Ubuntu backup image to /tmp on the new CentOS 6.5/7 platform.

5. For early releases of CentOS 7, install Incredible Backup and Restore:
Code:
cd /root
wget http://incrediblepbx.com/incrediblebackup11.tar.gz
tar zxvf incrediblebackup11.tar.gz
rm -f incrediblebackup11.tar.gz

6. Protect the /root folder and the index* files in /var/www/html on the CentOS machine before doing a restore from the Ubuntu image.
Code:
chattr -R +i /root
chattr +i /var/www/html/index*

7. Run /root/incrediblerestore /tmp/filename on the CentOS 6.5/7 platform using the Ubuntu backup image.

8. Unprotect the /root folder and the index* files in /var/www/html on the CentOS machine after completion of restore from the Ubuntu image.
Code:
chattr -R -i /root
chattr -i /var/www/html/index*

Done!

BuSC5AXCMAEF_fE.jpg:large
Bul_UgLCcAEAYeM.jpg:large
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Starting from CentOS 6.5 and migrating to Ubuntu 14 now works as well. Same drill but backwards. :)

BuSSl6cIEAA1T4R.jpg:large
 

jeff.h

Guru
Joined
Dec 1, 2010
Messages
502
Reaction score
71
Like a champ man.... like a champ! I just did it from my Ubuntu droplet to a CentOS 6.5 droplet and it was awesome. Still had to tidy up a few things like the TM3 stuff, but other than that I was impressed.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
images


Successfully migrated from Raspberry Pi to CentOS 6.5, but it's a little trickier because the Raspberry Pi has a different MySQL password (raspberry). But here's how:

1. Run /root/incrediblebackup on your Incredible PBX for Raspberry Pi platform.

2. Copy the backup image from /tmp to another place (like your desktop).

3. Install Incredible PBX on the CentOS 6.5 platform by following the Nerd Vittles tutorial.

4. Copy your backup image to /tmp on the new CentOS 6.5 platform.

5. Protect the /root folder and the index* files in /var/www/html on the CentOS machine before doing a restore from the Raspberry Pi image.
Code:
chattr -R +i /root
chattr +i /var/www/html/index*

6. Run /root/incrediblerestore /tmp/filename on the CentOS 6.5 platform using the Raspberry Pi backup image.

7a. Change the MySQL root password to the CentOS platform default after the restore with these steps:
Code:
service mysqld stop
mysqld_safe --skip-grant-tables &
mysql -u root

7b. When the MySQL prompt appears, issue the following commands:
Code:
use mysql;
update user set password=PASSWORD("passw0rd") where User='root';
flush privileges;
quit

8. Unprotect the /root folder and the index* files in /var/www/html on the CentOS machine after completion of restore from the Raspberry Pi image.
Code:
chattr -R -i /root
chattr -i /var/www/html/index*

9. reboot

Done!

BuYOXayIcAIjXHU.jpg:large
BuYOkQ3IUAABU9n.jpg:large
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
BubXFp5IMAEZFNX.jpg:large


Today's the Big Test for Incredible Backup. Can we migrate from Incredible PBX in the Cloud to a tiny Raspberry Pi on the desk? And the answer is...
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Migrating from Incredible PBX for Ubuntu 14/CentOS 7/CentOS 6.5 to Incredible PBX for Raspberry Pi

1. Run /root/incrediblebackup on your Incredible PBX for Ubuntu platform.

2. Copy the backup image from /tmp to another place (like your desktop).

3. Install Incredible PBX on Raspberry Pi platform by following the Nerd Vittles tutorial.

4. Copy your Ubuntu backup image to /tmp on the new Raspberry Pi platform.

5. Install the Incredible Backup and Restore applications on Raspberry Pi:

Code:
cd /root
wget http://incrediblepbx.com/incrediblebackup11-raspi.tar.gz
tar zxvf incrediblebackup11-raspi.tar.gz
rm -f incrediblebackup11-raspi.tar.gz

6. Protect the /root folder and the index* files in /var/www/html on the Raspberry Pi before doing a restore of the Ubuntu image.
Code:
chattr -R +i /root
chattr +i /var/www/html/index*

7. Run /root/incrediblerestore /tmp/filename on the Raspberry Pi using the Ubuntu backup image.

8. Unprotect the /root folder and the index* files in /var/www/html on the CentOS machine after completion of restore from the Raspberry Pi image.
Code:
chattr -R -i /root
chattr -i /var/www/html/index*

9. Fixup the Raspberry Pi passwords after the restore is completed:
Code:
cd /root
wget http://incrediblepbx.com/FixupRasPiPasswords.sh
chmod +x FixupRasPiPasswords.sh
./FixupRasPiPasswords.sh

NOTE: In rare circumstances (and we don't quite know what they are), MySQL and Asterisk still don't start properly. For example, restoring an Ubuntu backup to RasPi and then restoring a CentOS backup on top of that gets dicey as you probably would expect.

In this situation, just run ./FixupRasPiPasswords.sh a second time. That always seems to fix things up.

10. reboot

Done!

BudLJ3eCYAAM-fc.jpg:large
 

jeff.h

Guru
Joined
Dec 1, 2010
Messages
502
Reaction score
71
Ok so I thought that maybe something was up with Ubuntu and tried this on a fresh clean CentOS7 install. I went from a working Ubuntu droplet to a new CentOS7 droplet and it broke the gui as well.I followed all instructions to the letter and everything was updated to its latest versions as they happened per the tutorials.

I did perform an incredible backup on the droplet immediately before uploading the Ubuntu backup and was able to restore back to it and have a working system again.

FATAL ERROR

DB Error: connect failed

Trace Back

/var/www/html/admin/libraries/db_connect.php:71 die_freepbx()
[0]: DB Error: connect failed

/var/www/html/admin/bootstrap.php:85 require_once()
[0]: /var/www/html/admin/libraries/db_connect.php

/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php

/var/www/html/admin/config.php:99 include_once()
[0]: /etc/freepbx.conf
 

Jay Deal

Phhhhhhhhttttttt :)
Joined
Dec 26, 2013
Messages
267
Reaction score
85
I just downloaded and ran Incrediblebackup on a BBB running Raspbx but the backup process does not seem to work correctly. A file is created but the backup process does not terminate correctly after the backup file is created. Is there something unique about the BBB implementation of Raspbx that would necessitate that Incrediblebackup be tweaked in order to work on this platform? I am hoping to use Incrediblebackup to facilitate migrating from BBB to Centos 6.5.

TIA
 

stmcknig

New Member
Joined
Dec 9, 2009
Messages
22
Reaction score
0
So how about Incredible Pi to Incredible Cubox ? I installed incredible backup on the Pi but getting this :

STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully...

Asterisk Stopped

mysqld: unrecognized service
httpd: unrecognized service
Creating tarball...
tar: Removing leading `/' from member names
tar: /tftpboot: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: Removing leading `/' from member names
tar: /etc/wanpipe: Cannot stat: No such file or directory
tar: /etc/odbc.ini: Cannot stat: No such file or directory
tar: /etc/odbcinst.ini: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: Removing leading `/' from member names
tar: /etc/sysconfig/network-scripts/ifcfg*: Cannot stat: No such file or directory
tar: /etc/sysconfig/iptables: Cannot stat: No such file or directory
tar: /etc/sysconfig/network: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
tar: /usr/sbin/fxotune: Cannot stat: No such file or directory
tar: /usr/sbin/aelparse: Cannot stat: No such file or directory
tar: /usr/sbin/astman: Cannot stat: No such file or directory
tar: /usr/sbin/muted: Cannot stat: No such file or directory
tar: /usr/sbin/smsg: Cannot stat: No such file or directory
tar: /usr/sbin/stereorize: Cannot stat: No such file or directory
tar: /usr/sbin/streamplayer: Cannot stat: No such file or directory
tar: /usr/sbin/fpga_load: Cannot stat: No such file or directory
tar: /usr/sbin/genzaptelconf: Cannot stat: No such file or directory
tar: /usr/sbin/lszaptel: Cannot stat: No such file or directory
tar: /usr/sbin/xpp_blink: Cannot stat: No such file or directory
tar: /usr/sbin/xpp_sync: Cannot stat: No such file or directory
tar: /usr/sbin/zapconf: Cannot stat: No such file or directory
tar: /usr/sbin/zaptel_hardware: Cannot stat: No such file or directory
tar: /usr/sbin/zt_registration: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: Removing leading `/' from member names
tar: /usr/sbin/astribank*: Cannot stat: No such file or directory
tar: /usr/sbin/dahdi*: Cannot stat: No such file or directory
tar: /usr/sbin/lsdahdi: Cannot stat: No such file or directory
tar: /usr/sbin/sethdlc: Cannot stat: No such file or directory
tar: /usr/sbin/twinstar: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: Removing leading `/' from member names
Starting services...
httpd: unrecognized service
mysqld: unrecognized service

Please wait...

SETTING FILE PERMISSIONS
Permissions OK
Removing any dangling symlinks
Dangling symlinks removed

STARTING ASTERISK
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Asterisk Started

Compressing tarball...
 

repat

New Member
Joined
Aug 22, 2013
Messages
3
Reaction score
1
I recently installed RasPBX along with IncrediblePBX on my BBB, and was hoping to use the Incredible backup and restore to migrate from my PIAF Green 2.0.6.4 FreePBX 2.11.0.38/Asterisk 11.10/CentOS 6.4 . I read a few posts back that the backup portion was not supported yet for BBB, how about the restore portion?

Thanks for all the hard work that is put into PIAF, it is a great project!
 

jeff.h

Guru
Joined
Dec 1, 2010
Messages
502
Reaction score
71
My understanding is that you cannot migrate from PIAF to Incredible using Incredible Backup and Restore. What I have had some success with is using the backup and restore module that is built into FreePBX.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
:dots: These are snapshot images that destroy ALL of your existing MySQL, Asterisk DB, and FreePBX settings. Incredible Backup is intended for "like kind" restoration only. We've had some success moving between different Linux platforms that have the same versions of Asterisk 11 and FreePBX 2.11, but that also is hit and miss.
 

Members online

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top