SOLVED Incredible Backup for RasPi

RPi-Fan

Member
Joined
Jun 8, 2014
Messages
85
Reaction score
13
Is there any way to quickly migrate the entire FreePBX configuration of an IncrediblePi 3.11.10 system to a freshly installed IncrediblePi 3.11.11 system? I have an up-to-date backup file of the 3.11.10 system (using FreePBX Backup & Restore), but when I try to restore it to the 3.11.11 system, no files are displayed to select for the restore. The same backup file will restore properly on the 3.11.10 system.

I have a very elaborate configuration and it's several hours of work to reconstruct it manually.
 

RPi-Fan

Member
Joined
Jun 8, 2014
Messages
85
Reaction score
13

I'm afraid that one doesn't work either (it appears Asterisk, MySQL, and Apache cannot be stopped):

KILLING AMP PROCESSES
mpg123: no process found
kill: invalid option -- '9'
Usage:
kill [options] <pid> [...]
Options:
<pid> [...] send signal to every <pid> listed
-<signal>, -s, --signal <signal>
specify the <signal> to be sent
-l, --list=[<signal>] list all signal names, or convert one to a name
-L, --table list all signal names in a nice table
-h, --help display this help and exit
-V, --version output version information and exit
For more details see kill(1).
op_server.pl: no process found
mysqld: unrecognized service
httpd: unrecognized service
tar: 2.11.tar: Cannot stat: No such file or directory

The portion of the script being executed is:

amportal kill
service mysqld stop
service httpd stop
cd /tmp
tar -cf $BACKUP /var/www /var/lib/mysql /var/lib/asterisk /tftpboot /root /etc/asterisk /etc/crontab /var/spool/asterisk
 

RPi-Fan

Member
Joined
Jun 8, 2014
Messages
85
Reaction score
13
I got this working with the following changes:

amportal stop
service mysql stop
service apache2 stop

...

service apache2 start
service mysql start
amportal start

Will there be any problems using amportal stop instead of amportal kill?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,221
Will there be any problems using amportal stop instead of amportal kill?

Nope. Just takes longer. Kill doesn't wait for ongoing calls to end while stop does.

There were a couple other wrinkles. The filename algorithm no longer worked with newer versions of FreePBX. Should be good to go now. Just download incrediblebackup11.tar.gz again.

BtjMD7TIgAABjBT.jpg:large


File naming convention for Incredible Backups...
Five arrows show: (1) Backup date (2) Backup time (3) Asterisk version (4) FreePBX version (5) Incredible version

Before you restore the backup to a new machine...
1. The Asterisk major release (i.e. 11) and FreePBX version (i.e. 2.11) on the restore machine need to match the backup filename numbers (i.e. arrows 3 & 4) BEFORE you begin a restore.

2. If the minor version of Asterisk or FreePBX is different, it shouldn't affect the success of the restore operation.

3. While I have not yet tried it, I see no reason that you couldn't restore a backup from a CentOS-based server to a Debian/Ubuntu-based server and vice versa so long as the Asterisk and FreePBX versions are the same.
 

RPi-Fan

Member
Joined
Jun 8, 2014
Messages
85
Reaction score
13
Should be good to go now. Just download incrediblebackup11.tar.gz again.
amportal kill still produces the following on a Raspberry Pi:

root@incrediblepbx:~# amportal kill
Please wait...

KILLING AMP PROCESSES
mpg123: no process found
kill: invalid option -- '9'
Usage:
kill [options] <pid> [...]
Options:
<pid> [...] send signal to every <pid> listed
-<signal>, -s, --signal <signal>
specify the <signal> to be sent
-l, --list=[<signal>] list all signal names, or convert one to a name
-L, --table list all signal names in a nice table
-h, --help display this help and exit
-V, --version output version information and exit
For more details see kill(1).
op_server.pl: no process found
root@incrediblepbx:~#
 

RPi-Fan

Member
Joined
Jun 8, 2014
Messages
85
Reaction score
13
Ward,

Thank you for the updated incrediblebackup11.tar.gz. It appears to work correctly to migrate IncrediblePi 3.11.10 to 3.11.11. Assuming no surprises surface, it saved me many hours of manual configuration.

Ron
 

Members online

No members online now.

Forum statistics

Threads
25,812
Messages
167,763
Members
19,241
Latest member
bellabos
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