FOOD FOR THOUGHT Incredible Backup/Restore on 13-13 Broken

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
520
Reaction score
90
So I thought I'd try to run the backup/restore scripts and they wound up messng up my system and show errors about how Asterisk was already running. Any plans to fix these scripts? I would very much like to use these scripts to "take an image" of a Hiformance server that I'm helping someone set up.
 

Merlin

Member
Joined
Mar 10, 2017
Messages
38
Reaction score
1
Have you had any luck using the backup-restore option in the admin area?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
So I thought I'd try to run the backup/restore scripts and they wound up messng up my system and show errors about how Asterisk was already running. Any plans to fix these scripts? I would very much like to use these scripts to "take an image" of a Hiformance server that I'm helping someone set up.

Have you tried this approach: http://nerdvittles.com/?p=24610
 

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
520
Reaction score
90
Yeah, in the past, but it takes too long. I liked the older scripts since it only took a few minutes to back everything up. Now I would have to wait anywhere between 15-20 minutes, and in the end, get a gigantic tarball (in comparison to the hundreds of megabytes)

A fix for these scripts would really benefit those who just want a backup like in the 13-12 days.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Lots of reasons that may no longer be possible. One example is the migration from MySQL to MariaDB. InnoDB is no longer an option. It's required. FreePBX now is a mix of database types. And you can't make file copies of InnoDB databases just by shutting down the database server.
 

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
520
Reaction score
90
So I re-read the article and found this snippet of code:

Code:
tar -cf /tmp/backup.tar /var/www /var/lib/mysql /var/lib/asterisk /root /etc/asterisk /etc/crontab /etc/pbx /var/spool/asterisk /etc/freepbx.conf /etc/amportal.conf

I replaced the original tar command from the script with that and it behaves just like incredible backup which is what I wanted. I tested it out on a new system and it worked flawlessly.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
As long as you don't have InnoDB activated, that will work. If there are InnoDB databases, you'll get a royal mess.
 

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
520
Reaction score
90
How do I go about checking for these databases?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Code:
mysql -u root -ppassw0rd asterisk -e "show table status"
mysql -u root -ppassw0rd mysql -e "show table status"
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
I replaced the original tar command from the script with that and it behaves just like incredible backup which is what I wanted. I tested it out on a new system and it worked flawlessly.

Did you actually try to restore this or by "worked flawlessly" you mean the backup ran without errors?
 

Members online

Forum statistics

Threads
25,782
Messages
167,509
Members
19,203
Latest member
frapu
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