Problem with restore from full backup


(H Maznev) #1

As usually :slight_smile: after everything is up and running problems appear.

After all FreePBX structure was up and running I prepared full backups (by using the web GUI) of all machines. The backups were downloaded to a regular USB drive. A week after that I allready had a dead HDD.
So I changed the HDD and reinstalled the FreePBX distro (version 13). The machine was activated.
And of course I started to restore configuration from the backup.
After I started the restore procedure (as it is written in the wiki), I was asked “where to read the backup from?”. I pointed to the localy monted on my laptop USB drive and to particurlar backup file.
The FreePBX started to read the backup (in the down left corner I was able to see the process counter going from 1 to 100%).
**And surprise … after successfuly readed file the FreePBX didn’t takes me to a page where I can select which items to restore.
And of course nothing is restored on the targeting machine.
Any ideas why this happens and how the problem can be solved?
Thanks in advance.


(Shahin Nazir) #2

@hmaznev,
Try to copy your Full Backup from USB Storage to your Server HDD, After copy backup file check permissions i think you have (root:root) permissions right now. For fixing Permissions on backup file you can run

/var/spool/asterisk/backup/
fwconsole chow
ls -la
-rw-rw-r-- 1 asterisk asterisk 123456789 Jul 1 00:01 202007XX-Backup.tgz

Thanks.


(H Maznev) #3

Thank you @shahin.
Right now I do not have folder “backup” in /var/spool/asterisk.
Should I create one and what permisions has to have folder “backup” or it doesn’t matters?
And one more question - when I say Restore - and it asks me “Where is your backup file?” - what I should choose?


(Lorne Gaetz) #4

What version of FreePBX are you attempting to restore to?


(H Maznev) #5

From FreePBX 13.0.197.22 to FreePBX 13.0.197.22


(Matt Brooks) #6

Backup and restore for 13 is known to be problematic. You may have better luck restoring FreePBX 13 to FreePBX 15 to be honest.


(Lorne Gaetz) #7

On the target 13 machine run the default backup once to generate the file folders. Then upload the tarball you want to restore from to

/var/spool/asterisk/backup/<backupname>/

and change ownership to asterisk:asterisk. At that point you can use the GUI to browse to the uploaded tarball and select for restore.


(H Maznev) #8

Thank you guys,
You are great.
The @shahin solution works perfect.
Everything is restored except the ETH interface settings … and VPN of course.
I restored (confugured again the OpenVPN.
And I suppose - I have to set up manualy the ETH settings.


(H Maznev) #9

If I want to restore not only FreePBX settings but also IP configuration, what directory I have to include into the backup options? Should it be “/etc/network/interfaces” or CentOS keeps somewhere else the network configurations?


(system) closed #10

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.