support

Backup problem

arsm
Posts: 39
Member Since:
2008-01-24

Backup doesn't work
When I try do it I got next errors from /var/log/httpd/error_log

[Thu Apr 10 14:43:34 2008] [error] [client 192.168.16.10] Thu, 10 Apr 2008 14:43:34 -0700 - No event handler for event 'new
exten', referer: http://204.9.200.116/admin/config.php
[Thu Apr 10 14:44:18 2008] [error] [client 192.168.16.10] PHP Notice: Undefined variable: mins_string in /var/www/html/adm
in/modules/backup/schedule_functions.php on line 278, referer: http://204.9.200.116/admin/config.php?type=tool&display=backup&ac...
[Thu Apr 10 14:44:18 2008] [error] [client 192.168.16.10] PHP Notice: Undefined variable: hours_string in /var/www/html/ad
min/modules/backup/schedule_functions.php on line 279, referer: http://204.9.200.116/admin/config.php?type=tool&display=backup&ac...
[Thu Apr 10 14:44:18 2008] [error] [client 192.168.16.10] PHP Notice: Undefined variable: days_string in /var/www/html/adm
in/modules/backup/schedule_functions.php on line 280, referer: http://204.9.200.116/admin/config.php?type=tool&display=backup&ac...
[Thu Apr 10 14:44:18 2008] [error] [client 192.168.16.10] PHP Notice: Undefined variable: months_string in /var/www/html/a
dmin/modules/backup/schedule_functions.php on line 281, referer: http://204.9.200.116/admin/config.php?type=tool&display=bacup&act...
[Thu Apr 10 14:44:18 2008] [error] [client 192.168.16.10] PHP Notice: Undefined variable: weekdays_string in /var/www/html
/admin/modules/backup/schedule_functions.php on line 282, referer: http://204.9.200.116/admin/config.php?type=tool&display=backup&ac...



kerryg
Posts: 6401
Member Since:
2006-05-31
Have you tried the trixbox

Have you tried the trixbox backup module? New version was released today.

--

Kerry Garrison
trixbox Community Director
VoipSpeak.net - Asterisk Tutorials



arsm
Posts: 39
Member Since:
2008-01-24
I have backup&restore 2.4.1

I have backup&restore 2.4.1 module version



kerryg
Posts: 6401
Member Since:
2006-05-31
try the trixbox backup

try the trixbox backup module, its available in the package manager.

--

Kerry Garrison
trixbox Community Director
VoipSpeak.net - Asterisk Tutorials



karllui2008
Posts: 153
Member Since:
2007-10-18
To me seems like FreePBX

To me seems like FreePBX backup has some problems sometimes. But trixbix backup works.



arsm
Posts: 39
Member Since:
2008-01-24
I tryed trixbox backup

I tryed trixbox backup module
My trixbox backup&restore module have version - 2.4.1
But in fact doesnt work correct



kerryg
Posts: 6401
Member Since:
2006-05-31
And the trixbox backup does

And the trixbox backup does more things.

--

Kerry Garrison
trixbox Community Director
VoipSpeak.net - Asterisk Tutorials



arsm
Posts: 39
Member Since:
2008-01-24
my trixbox version is

my trixbox version is 2.6.0.0
FreePBX version is 2.4.0



gbrook
Posts: 211
Member Since:
2006-06-06
KerryG indicated to me in

KerryG indicated to me in one of the forums that trixbox backup was "borked" so I moved to the FreePBX Backup.

It doesn't always seem to work as expected either so I don't know where you go to from here.

Garry



kerryg
Posts: 6401
Member Since:
2006-05-31
We released a new version of

We released a new version of the trixbox backup module today.

--

Kerry Garrison
trixbox Community Director
VoipSpeak.net - Asterisk Tutorials



jahyde
Posts: 1988
Member Since:
2006-06-02
looks good so far Kerry. I

looks good so far Kerry. I havent tried an actual restore, but it seems to work when I push the buttons.

do you know if it backs up /etc/zaptel.conf?? - freepbx doesnt get this, which is extremely annoying.

--

--my PBX is run on 2 V8's



LinkyParky
Posts: 34
Member Since:
2008-03-12
i have the backup module

i have the backup module 2.6

it doesnot back up...

nothing happens



kerryg
Posts: 6401
Member Since:
2006-05-31
Linky, You have the most

Linky,
You have the most current version from the repo? Installed today?

--

Kerry Garrison
trixbox Community Director
VoipSpeak.net - Asterisk Tutorials



arsm
Posts: 39
Member Since:
2008-01-24
if i see packages-> there is

if i see packages->
there is tbm-backup version 2.6.1-2 updated

but inf freepbx->Module Admin -> Backup & Restore tool version 2.4.1



kerryg
Posts: 6401
Member Since:
2006-05-31
We do not deal with the

We do not deal with the FreePBX backup module as that is not our code. We developed the trixbox backup module to be a more comprehensive backup solution.

--

Kerry Garrison
trixbox Community Director
VoipSpeak.net - Asterisk Tutorials



gbrook
Posts: 211
Member Since:
2006-06-06
KerryG, The FTP

Backup still does not appear to work.

Cheers
Garry



kerryg
Posts: 6401
Member Since:
2006-05-31
Clicked on "New" Typed in

Clicked on "New"
Typed in Monday
Selected some things to backup
Selected a time for backup schedule to run
Clicked submit

A new backup job was added

Clicked on "Backup Now"
The backup job ran

I see there is a problem if you select "Now" as the time for the backup to run, give it some time to run at and let me know if it works.

--

Kerry Garrison
trixbox Community Director
VoipSpeak.net - Asterisk Tutorials



arsm
Posts: 39
Member Since:
2008-01-24
Backup still does not appear

Backup still does not appear to work



gbrook
Posts: 211
Member Since:
2006-06-06
FTP

Backup still does not appear to work

Cheers
Garry



kerryg
Posts: 6401
Member Since:
2006-05-31
Did you follow my

Did you follow my instructions exactly?

--

Kerry Garrison
trixbox Community Director
VoipSpeak.net - Asterisk Tutorials



gbrook
Posts: 211
Member Since:
2006-06-06
How long is some

or do I have to wait until the time I set?

Cheers
Garry



jahyde
Posts: 1988
Member Since:
2006-06-02
are there any files in

are there any files in /var/lib/trixbox ???

--

--my PBX is run on 2 V8's



gbrook
Posts: 211
Member Since:
2006-06-06
Yes?

What in particular?



proinform
Posts: 3
Member Since:
2007-06-27
FTP Backup really doesn't work

Hi all,

I followed Kerry's advice and created a new FTP backup job. --> This doesn't work. To test if backup generally works, I also created a non-ftp backup job. --> This works.

On the FTP Server, the successful connect from trixbox can be seen but it doesn't upload anything.

This is the log trace on the FTP server:

(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> Connected, sending welcome message...
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> SYST
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> 215 UNIX emulated by FileZilla
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> USER
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> 331 Password required for
(000010) 16.04.2008 19:50:39 - (not logged in) (10.2.1.10)> PASS ********
(000010) 16.04.2008 19:50:39 - (10.2.1.10)> 230 Logged on
(000010) 16.04.2008 19:50:39 - (10.2.1.10)> TYPE I
(000010) 16.04.2008 19:50:39 - (10.2.1.10)> 200 Type set to I
(000010) 16.04.2008 19:50:39 - (10.2.1.10)> PASV
(000010) 16.04.2008 19:50:39 - (10.2.1.10)> 227 Entering Passive Mode (10,1,0,100,23,227)
(000010) 16.04.2008 19:50:39 - (10.2.1.10)> QUIT
(000010) 16.04.2008 19:50:39 - (10.2.1.10)> 221 Goodbye
(000010) 16.04.2008 19:50:39 - (10.2.1.10)> disconnected.

The server sais, that it received 600 bytes which surely is not enough to backup a complete TB.

TB definitely doesn't send data.

Any thoughts?

By the way, I updated everything with 'yum clean all', yum -y update

With kind regards,

Michael



kerryg
Posts: 6401
Member Since:
2006-05-31
Once you create a backup

Once you create a backup schedule and submit it, then you can go to the Backup Now button to execute it immediately. As far as FTP problems, I suspect firewall issues preventing passive mode operations although I could be wrong, just guess at the moment.

--

Kerry Garrison
trixbox Community Director
VoipSpeak.net - Asterisk Tutorials



gbrook
Posts: 211
Member Since:
2006-06-06
Not a Firewall

issue as the FTP Server is on the same subnet

Cheers
Garry



colinjack
Posts: 281
Member Since:
2006-06-01
I'm using Trixbox Backup

I'm using Trixbox Backup version 2.6.1 installed yesterday April 19th ...

Backup works okay to /var/lib/trixbox/backups but ftp doesn't. I cannot even see it attempting to login to my ftp server.

I have tried logging in to my ftp server using the criteria on the backup module and that works fine from the cli.

FTP server is on the same subnet.

--

Colin



kspare
Posts: 602
Member Since:
2007-02-16
Is there any way to pick the

Is there any way to pick the directory the data goes to on the ftp server?



kspare
Posts: 602
Member Since:
2007-02-16
Also how do you delete a job

Also how do you delete a job if you don't want it anymore?



gbrook
Posts: 211
Member Since:
2006-06-06
If you really

want to back up to an FTP Server like I had to (I don't actually understand why you would backup to the same device anyway) I can post the changes I did to amportal.conf and tb_backup.pl.

The issue appears to be how the GUI populates the database as if you put the correct entries in amportal.conf (including any sub directory) and then use them and not the database fields in the database program then it works.

The only way I could find to delete a schedule was in the cron scheduling section through WebMin

Cheers
Garry



colinjack
Posts: 281
Member Since:
2006-06-01
Setting the FTP folder is

Setting the FTP folder is done on the FTP server - just set the home folder for the user name that you are using for the backup.

At the moment I backup locally (which works) and run a script which FTPs the backup to my server.

Bit of a kludge but gets around the problem until Kerry and the team fix it.

--

Colin



apple01
Posts: 148
Member Since:
2007-05-17
Restore does not work correctly

Problem: After restoring backup, extensions are "half-alive". If I try *97 - it is asking for mailbox number ("Comedian Mail, mailbox ..."). If I try do dial another extension, the other phone does not ring and my phone says "The person an extension XXXX is unavailable .."
At the same time, all extensions can dial out.
If I delete and recreate extension then it works OK.

Software versions: TB CE 2.6.0.7; Backup version: 2.6.1

Backup and restore was performed on the same platform, same TB and Backup versions.

First I tried to restore after actual disaster. After trying to fix odd behavior for some time I gave up and did clean install and keyed in all the info from configuration print-out (it took me about 2 hours).
Then after the system was up and operational I decided to do further testing. I installed current tbm-backup module, made backup and restored it on the test service which has exactly the same configuration as production server. The issue reproduced itself again.



apple01
Posts: 148
Member Since:
2007-05-17
one more problem

This is minor issue:

When system is brand new built for restore, then there are no previous backup sets. If I click on Restore button, it displays the following error:

Warning: Invalid argument supplied for foreach() in /var/www/html/maint/modules/restore/restore.php on line 194

This happens even if there is a backup file in /var/lib/trixbox/backups folder. Now, if I create any folder in /var/lib/trixbox/backups and put backup file in there then I can see the backup sets with no error message above.



joshelson
Posts: 159
Member Since:
2006-12-07
Non-intuitive UI

Some of the problems people have been reporting with the Trixbox 2.6 backup module appear to be due to some non-intuitive behavior in the UI, rather than the backup module itself.

If you create a new backup set, and set the backup schedule to "Now", the backup executes, and you'll see the set directory and backup file in /var/lib/trixbox/backups. However, the name of the backup set is not written to the backup_tb table in the Asterisk database, and is therefore not saved.

I was initially trying to run backups, and was ending up with the situation where I didn't see the backup set names I'd created (with a schedule of "Now") being saved. Not only is this non-intuitive, it's not the way that FreePBX backup works, probably adding to the confusion.

I would prefer a modification to the PHP function Save_Backup_Schedule to remove the check for the now condition - writing all backups to the database so they can be recalled, regardless of what the time condition is.

In any case, Kerry is correct in noting that if you create the backup job with a schedule that isn't set to "Now" the behavior is quite a bit more intuitive. In any case, it does work.

Just my .02...

-Josh



illizit
Posts: 44
Member Since:
2007-01-17
My backups are working

My backups are working however they are not being upoaded the my FTP server.
I see trix attempting to log into the FTP server, here is my ftp server log: (I blocked the ips with X's)

(000226) 5/14/2008 14:47:01 PM - username (X.X.X.X)> 230 Logged on
(000226) 5/14/2008 14:47:01 PM - username(X.X.X.X)TYPE I
(000226) 5/14/2008 14:47:01 PM - username(X.X.X.X)> 200 Type set to I
(000226) 5/14/2008 14:47:01 PM - username(X.X.X.X)> QUIT
(000226) 5/14/2008 14:47:01 PM - username(X.X.X.X)> 221 Goodbye
(000226) 5/14/2008 14:47:01 PM - username(X.X.X.X)> disconnected.

As you can see it quickly logs in and then out. Can anyone help?
Also, does anyone know if it backs up the agi-bin folder?

Thanks



apple01
Posts: 148
Member Since:
2007-05-17
did anyone try to restore

did anyone try to restore the backup on the brand new TB server? Did all functions work correctly?



Comment viewing options

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