Backup Module with 2.6.2

stonet
Posts: 103
Member Since:
2008-02-28

I have yum install tbm-backup and run the module and set up a backup schedule. The backup runs when I click on backup now and saves the file in /backup/Test and on the off site ftp server I have set up now but does not run per the schedule I have set up.

Using Webmin I can see that a cron job has been scheduled and I can see the cron job has run per the schedule in the log. The cron log shows:

Jan 13 10:30:01 demopbx crond[19477]: (asterisk) CMD (php /var/www/html/kindex.php backup_cron/index/4)

however there is no backup file written to /backup/Test or to the off site ftp server I have set up.

Grateful if anyone can throw some light on this.



joshaf
Posts: 18
Member Since:
2009-02-09
I am having the same problem

I am having the same problem in 2.6.2.1. Backup Now works, but the scheduled backup doesn't. If I su to asterisk and run 'php /var/www/html/kindex.php backup_cron/index/1' I get this:

Notice: Undefined index: HTTP_HOST in /var/www/html/config/config.php on line 7
Your Kohana application configuration file is not valid.



borgo
Posts: 43
Member Since:
2006-07-01
SCHEDULED BACKUP DOSEN'T WORK ANYMORE

SAME PROBLEM FOR ME !!!!



kspare
Posts: 673
Member Since:
2007-02-16
This is one more reason why

This is one more reason why i'm finally jumping off this ship and taking a serious look at elastix.

Why the hell has is it taking so long to get a working backup module? None of them have worked, and even your so called fork of freepbx which you claim will make things better, doesn't even include a backup module!

Trixbox in my eyes is one big waste of time simply because they are worried more about themselves than what the community wants.

See ya!



stonet
Posts: 103
Member Since:
2008-02-28
Come on, that's rather

Come on, that's rather harsh, just remember its free, really beggars can't be choosers, I am sure Andrew will get to it as soon as he can, the module is working except for the scheduling, I am just doing a manual backup once a week until it gets fixed.



kspare
Posts: 673
Member Since:
2007-02-16
How exactly are you doing a

How exactly are you doing a manual backup? I've got 20 customers i'd like to upgrade to the latest version, but if I do that, i can no longer provide them with remote backups because fonality has REMOVED any backup functionality from pbxconfig, tbm-backup does not work, it's a joke. The freepbx backup that SHOULD be available with pbxconfig does work, yet they have removed it. Why? They obviously can't provide a better version, yet it's still removed.

The whole development process of trixbox is a joke. I can't willingly support/install a product on customer systems that doesn't even provide a stable method of backup. in the end it's MY ASS on the line and not andrews.

The whole backup thing has been an issue for many many months and does not seem to receive any attention. It's obviously quite important to alot of people but still nothing gets done. It doesn't take a genius to figure to figure out that andrew doesn't give two shits about this project or the people trying to get involved int he community. The fact is, there are other better supported projects out there, that much has become clear to me.

There is very little fonality presence on here, they don't listen to the community, it's a joke.



SkykingOH
Posts: 9678
Member Since:
2007-12-17
Quote: It doesn't take a
Quote:
It doesn't take a genius to figure to figure out that andrew doesn't give two sh** about this project or the people trying to get involved int he community.

Care about who, the resellers that make money of the distribution and give nothing back??

FreePBX, Elastix and PBXIAF all have contributors to the code base in the community. A few folks have donated a bit of code here and their however we have no consistent contributors.

Why don't you or one of the other folks wining in this forum fix the module and contribute it back?

In the FreePBX backup thread on this forum you ask for FTP support in the FreePBX backup module, it supports FTP have you ever even glanced at amportal.conf where you set the FTP options?

It is not secret we built our own distro that suits our business model. We used code from all the projects and we control it. That's how you make happy customers.

--

Scott

aka "Skyking"



kspare
Posts: 673
Member Since:
2007-02-16
We DO use the freepbx backup

We DO use the freepbx backup feature, infact I like it alot, it works great. The problem is that in 2.6.2.2 it's not even available. I find it hard to believe that a funded company such as fonality can't keep up with the likes of pbx in a flash or elastix....



kspare
Posts: 673
Member Since:
2007-02-16
I guess the other question

I guess the other question is why everyone thinks trixbox is the endall be all distribution....it's just not anymore. infact it's behind in the times really. poor backup, no fax....



greywire
Posts: 140
Member Since:
2007-10-03
In the file

In the file /var/www/html/maint/modules/backup/controllers/backup.php, line 456:

fwrite($handle, "$string php /var/www/html/kindex.php backup_cron/index/$id\n");

change to:

fwrite($handle, "$string curl -s -o /dev/null http://localhost/kindex.php/backup_cron/index/$id\n");

And the scheduled backups should work. You will need to go in and save the schedule again to actually get the right string entered into the cron job.

--
Aric Caley
Ex-Developer, trixbox CE.
greywire@gmail.com

--

--
Aric Caley
Senior Developer, After 10 Studios.
greywire@gmail.com



SkykingOH
Posts: 9678
Member Since:
2007-12-17
Great Job Aric, do you mind

Great Job Aric, do you mind if I submit to the tracker to patch?

--

Scott

aka "Skyking"



stonet
Posts: 103
Member Since:
2008-02-28
I made the change, I can see

I made the change, I can see the job at the correct time in the cron log but the backup does not run.Any ideas please?



supportlounge
Posts: 6
Member Since:
2008-09-30
Make sure the backup schedule name has no spaces

This one drove me mad.

The automatic FTP upload of the backup doesn't run if the name of the backup schedule has spaces in it.

I couldn't make it work with anonymous FTP, so believe the config file when it says that you have to provide a username and password.

Simon



rahulrajan
Posts: 11
Member Since:
2009-02-26
I have tried this in 2.6.2

I have tried this in 2.6.2 backup version but once I have saved it and refresh the page all settings vanish now I'm not sure if that'll work or not



UncleWard
Posts: 358
Member Since:
2006-05-31
Coming Soon

In the spirit of cooperation, the PBX in a Flash development team hopes to release a new FreePBX-compatible backup module that also works with trixbox. Stay tuned!



SkykingOH
Posts: 9678
Member Since:
2007-12-17
Ward - That 's great news,

Ward - That 's great news, however isn't Philippe's team also working on an update module?

With the resources we (the community) have it seems that duplicating effort is counterproductive.

--

Scott

aka "Skyking"



samham
Posts: 44
Member Since:
2009-01-13
How do you delete the schedule

I made the change as Aric Caley suggested and the backup is working fine now. However, how do you delete a schedule? I have created three in the process of troubleshooting and I would like to get rid of them. uninstalling and reinstalling the backup module doesn't help. any ideas?

Thanks
Sam



samham
Posts: 44
Member Since:
2009-01-13
stonet

st



edenmtz
Posts: 2
Member Since:
2008-05-07
Using the old module

After trying to migrate my old trixbox server with my backups, and checked that my new brand trixbox server was not have the backup module I took the option to explore the /var/www/html/admin/modules/_cache directory from my old trixbox instalacion and copy the file backup-2.5.1.6.tgz and used with the last trixbox instalation 2.6.2.2, with the upload module link, now this works great.



nttranbao
Posts: 189
Member Since:
2008-02-16
Thank you

edenmtz solution works great on my case. Since I dont keep the old _cache directory, freepbx has a place to download the backup-x.x.x.x.tgz file.

Went to http://svn.freepbx.org/modules/release/2.5/ ,downloaded # backup-2.5.1.7.tgz.

After uploading & enabling this module in FreePBX, I tried to restore CDR report, and in a second I have all the call log available.

Cheers,

Bao Nguyen.

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



cmbtrok
Posts: 22
Member Since:
2008-09-03
where are backup job settings stored with system backup

Same here, in the process of troubleshooting, I have a backup job schedule that won't run automatically, and for some reason, the "PBX Config" checkbox never checks under "select items to backup" under the items tab.
I 'd like to delete and recreate my backup, howvever I can't find how to do this... Does anyone know please?

Thanks,

Mike



vprea
Posts: 21
Member Since:
2007-09-18
voila!!!! Aric patch

voila!!!!
Aric patch worked!!

what is not working is Trixbox patch tracker....... I've downloaded lastest TB 2.6.2.3 and still the same problem........................



antidelldude
Posts: 287
Member Since:
2009-05-18
Agreed, I am very surprised

Agreed, I am very surprised I STILL have to go edit that file on a new install, when the fix is now common knowledge.

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



mst
Posts: 313
Member Since:
2008-05-02
Yep Backup in 2.6.2.3 does

Yep Backup in 2.6.2.3 does not work like it should. Just have installed 2.5.1.7 and works.

MST



Bedrock
Posts: 107
Member Since:
2007-04-10
This is all very confusing

So is there a way to install a backup module that works in 2.6.2.3?

Bedrock
www.BedrockInfrastructure.com



mst
Posts: 313
Member Since:
2008-05-02
Yes it is possible. Please

Yes it is possible. Please go to http://svn.freepbx.org/modules/release/2.5/ ,download # backup-2.5.1.7.tgz don't know why but buckup is .gz but after downloading
change .gz to .tgz and use from GUI upload manually module. Easy and works in Trixbox 2.6.2.3 ....... at least it does everyday backup not like oryginal and fancy backup
in 2.6 that looks nice but does not do backups. I have 4 2.6.2.3 difeferrent servers setup and oryginal nackup does not work neither one of them.... :(

MST



mst
Posts: 313
Member Since:
2008-05-02
I have tried to reinstall

I have tried to reinstall tdm-backup in 2.6.2.3 ,but at this time I can not even create any backup's. I have backup installed but after trying to press NEW nothing is showing up.......

Anyone had similar problems????

MST



dbaddorf
Posts: 93
Member Since:
2009-08-06
freepbx & mondo backup script

Here is what worked for me (trixbox 2.6.2.3). These steps install the FreePBX & mondo backup, and a script which FTP's these backups to another server and cleans up old copies. If anyone has any questions, please let me know.

On PC, download http://svn.freepbx.org/modules/release/2.5/backup-2.5.1.7.tgz

PBX- PBX Settings – Module Admin – Upload Module: Upload newly downloaded module.

Module Admin – click “Backup & Restore” and select Install. Click “Process”.

“Tools – Backup & Restore”. Create backup called “Full”, selecting everything, and schedule for 1:00, everyday.

# cd /etc/yum.repos.d
#wget ftp://ftp.mondorescue.org/rhel/5/mondorescue.repo
#yum install mondo -y
if error, then run: “yum clean metadata” and re-run last step.
#mkdir /home/backups
#cd /home/backups
#nano backup.sh
------beginning of script----------------------
# icepts-backup.sh - runs mondoarchive & ftp's mondorescure & FreePBX backups
FTPHOST=
FTPUSER=
FTPPASS=
EMAIL=
# clean up old backups
rm -f /var/cache/mondo/mondorescue* 2>/dev/null
find /var/lib/asterisk/backups/Full -mtime +5 -exec rm {} \;
# run mondo full backup
/usr/sbin/mondoarchive -Oi -N -s 4690m -G -d /var/cache/mondo
# ftp to remote host
ftp -n -i $FTPHOST user $FTPUSER $FTPPASS
bin
cd trixbox-backups
lcd /var/cache/mondo
mdel prior*
rename mondorescue-1.iso prior-mondorescue-1.iso
rename mondorescue-2.iso prior-mondorescue-2.iso
rename mondorescue-3.iso prior-mondorescue-3.iso
rename mondorescue-4.iso prior-mondorescue-4.iso
rename mondorescue-5.iso prior-mondorescue-5.iso
rename mondorescue-6.iso prior-mondorescue-6.iso
rename mondorescue-7.iso prior-mondorescue-7.iso
rename mondorescue-8.iso prior-mondorescue-8.iso
rename mondorescue-9.iso prior-mondorescue-9.iso
mput mondorescue*
mdel *.tar.gz
lcd /var/lib/asterisk/backups/Full
mput *.tar.gz
lcd /tmp
dir * backup.log
quit
EOF
# send email notification
echo "FTP files: (check dates in tar.gz filenames, check dates on mondo files)"> /tmp/backup.email
cat /tmp/backup.log >> /tmp/backup.email
echo ======================================================== >> /tmp/backup.email
echo "Disk Usage: (check for growth in %used in /)" >> /tmp/backup.email
df -k >> /tmp/backup.email
echo ======================================================== >> /tmp/backup.email
echo "Asterisk logs: (check to make sure that logs are consistent size)" >> /tmp/backup.email
ls -l /var/log/asterisk/full* >> /tmp/backup.email
echo ======================================================== >> /tmp/backup.email
echo "RAID Status: (check that both drives are Good)" >> /tmp/backup.email
php /home/icepts/raid-status.php 2>/dev/null >> /tmp/backup.email
cat /tmp/backup.email | mail -s "trixbox backup log" $EMAIL
--------end of script----------
#chmod 700 backup.sh
#crontab –e
0 2 * * * /home/backup/backup.sh >/home/backup/backup.log 2>&1

I hope this can be helpful to someone...



Bedrock
Posts: 107
Member Since:
2007-04-10
Yes, very helpful. (Though

Yes, very helpful. (Though I've not tried it yet) I'm going to try it out on a non-production box today.

Question:
How does this compare to this post?
"Just wanted to confirm that WB3FFV's solution above works for getting at least the FreePBX version of backup/restore working again (the one most of us were used to in the first place). Just to repeat the steps:

1) Download FreePBX's backup module here: http://freepbx.org/trac/browser/modules/release/2.5/backup-2.5.1....
2) In the top menu: PBX -> PBX Settings and then on the left hand menu Tools -> Module Admin click on 'Upload Module'.
3) Select from your local PC the backup-2.5.1.6.tgz and upload the bad boy.
4) Once uploaded, click on 'Manage Local Modules', scroll down to the newly restored ;) backup module.
5) Install as you would normally install other modules.

It appears to work. Though I haven't fully tested for my application."

I'm just trying to get more perspective before I pour my life into getting this up and running.

Thanks



dbaddorf
Posts: 93
Member Since:
2009-08-06
Includes Mondo Restore, FTP, etc.

If you just want a FreePBX backup, then the above is all that you probably need. However the instructions gives the ability to:
1. Install Mondo Rescue software
2. Install FreePBX backup
3. Configure FreePBX backup

The script does the following:
1. Runs a Mondo Rescue backup (which backs the entire system up to a DVD .iso file) for disaster recovery.
2. FTP's both the Mondo Restcue backup and the FreePBX backup to another server
3. Deletes old backups so they don't continue to grow
4. Send email notification of backup results, FTP results, disk space, Asterisk log file size, software RAID status (requires another script but if someone wants it I'll be glad to send it along).

Here is a copy of what the backup notification looks like:

FTP files: (check dates in tar.gz filenames, check dates on mondo files)
10-14-09 02:07AM 29635594 20091009.01.00.02.tar.gz
10-14-09 02:07AM 29318397 20091010.01.00.01.tar.gz
10-14-09 02:07AM 29318096 20091011.01.00.01.tar.gz
10-14-09 02:07AM 29711601 20091012.01.00.01.tar.gz
10-14-09 02:07AM 30711567 20091013.01.00.02.tar.gz
10-14-09 02:07AM 27780900 20091014.01.00.01.tar.gz
10-14-09 02:07AM 1074688000 mondorescue-1.iso
10-13-09 02:07AM 1079298048 prior-mondorescue-1.iso
========================================================
Disk Usage: (check for growth in %used in /)
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 74580312 3088828 67641916 5% /
/dev/md1 101018 11299 84503 12% /boot
tmpfs 777176 0 777176 0% /dev/shm
========================================================
Asterisk logs: (check to make sure that logs are consistent size)
-rw-r----- 1 asterisk asterisk 4409963 Oct 14 01:00 /var/log/asterisk/full
-rw-r----- 1 asterisk asterisk 3104542 Oct 13 04:02 /var/log/asterisk/full.1
-rw-r----- 1 asterisk asterisk 36862 Oct 12 04:02 /var/log/asterisk/full.2
-rw-r----- 1 asterisk asterisk 17970 Oct 11 04:02 /var/log/asterisk/full.3
-rw-r----- 1 asterisk asterisk 3802311 Oct 10 04:02 /var/log/asterisk/full.4
-rw-r----- 1 asterisk asterisk 3863445 Oct 9 04:02 /var/log/asterisk/full.5 ========================================================
RAID Status: (check that both drives are Good) disk 1::Good 2::Good

Please let me know if you need anything else... Dave



Bedrock
Posts: 107
Member Since:
2007-04-10
Getting the FreePBX backup

Getting the FreePBX backup working is where I need to start, but I am interested in Mondo Rescue software. Is there a link, or more information on what that program does?
I am interested in a DRP with my boxes in the field.

Thanks for you help with this.



dbaddorf
Posts: 93
Member Since:
2009-08-06
http://www.mondorescue.org/

Look at http://www.mondorescue.org/ and go to the section towards the end of the page "What is Mondo Rescue"...



Bedrock
Posts: 107
Member Since:
2007-04-10
Thanks again, this is very

Thanks again, this is very helpful.



dbaddorf
Posts: 93
Member Since:
2009-08-06
glad to help

There is certainly a lot of good information on this forum that I've benefited from, so I'm glad to be of some help...



techman
Posts: 114
Member Since:
2007-02-09
Thanks Guys!

Life savers! Works and rescued me!

http://www.devenlink.com
Advertise your business in Style- Free link exchange
Advertise your website for free now
http://dbd.devenlink.com - Get Listed Now

--

http://www.devenlink.com
Advertise your business in Style- Free link exchange
Advertise your website for free now
http://dbd.devenlink.com - Get Listed Now



ditrixbox
Posts: 8
Member Since:
2009-11-12
2.8.0.1

Hi dbaddorf,

I read your post and try with trixbox 2.8.0.1 since I has been struggling this problem 2 days. Although I install the backup module as your instruction:

On PC, download http://svn.freepbx.org/modules/release/2.5/backup-2.5.1.7.tgz

PBX- PBX Settings – Module Admin – Upload Module: Upload newly downloaded module.

Module Admin – click “Backup & Restore” and select Install. Click “Process”.

I then go to System and still do not see the backup module appear in the GUI?

You have any glue of this?

Thanks



dbaddorf
Posts: 93
Member Since:
2009-08-06
2.8.0.1?

I'm not familiar with 2.8.0.1, but I believe that I've heard of others using the FreePBX module (for example to backup 2.8 and restore to 2.6), so I think that it works.
1. Under the PBX - PBX Settings - Tools - Module Admin, does the "Backup & Restore" module show up as enabled?
2. Under PBX - PBX Settings - Tools - System Administration menu, is there a menu item for "Backup & Restore"?



mst
Posts: 313
Member Since:
2008-05-02
In my case changing .gz to

In my case changing .gz to .tgz of downloaded module helped to install under GUI. Meybe this helps..... I used v. 2.6.2.3



Comment viewing options

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