View Full Version : Administrative and Maintenance Tools - vBulletin Cron Based Database Backup
chikuru
09-21-2014, 07:12 PM
what could be the cause of the blank page?
i tried changing the var to mysql also.
is there any way to log the error?
ozzy47
09-21-2014, 07:17 PM
Check your server error logs. If you don't know where they are, ask your host.
john7911
10-31-2014, 09:02 PM
Hi,
When I download an sql my forum does not work :(
https://vborg.vbsupport.ru/external/2014/10/1.jpg
what is the problem?
Thank you ;)
john7911
11-01-2014, 05:43 PM
any solution?
tbworld
11-01-2014, 06:04 PM
You would have to leave us more details on what you did. How did you restore the database? What was the reason you had to restore your database from a backup?
:)
john7911
11-01-2014, 06:36 PM
Advisor
Join Date: Oct 2008
Posts: 2,133
Design: Red Rum,Wide
You would have to leave us more details on what you did. How did you restore the database? What was the reason you had to restore your database from a backup?
Reply With Quote
I did a back up of my forum , before manipulating into the template, but i was not happy with the modification, and decided to restore the forum.
I have tried directly via phpmyadmin but it does not work properly , then I have used bigdump to do it.
All the table are in the database.
https://vborg.vbsupport.ru/external/2014/11/20.jpg
Thank you :)
RichieBoy67
11-01-2014, 06:38 PM
Well this backs up only the database, not the files.
What do you mean it did not work? Do you have ssh access?
ZeroDoom
11-05-2014, 11:46 PM
Hi, I'm still confused about the date format and directory of the backups.. Could anyone help? I want mine to backup daily and have the backups stored in public_html/backups
Thanks!
Mariner1
01-02-2015, 04:01 AM
Hi. This has been working fine until a few days ago.When trying to do backups now i get this error in admincp
Database error in vBulletin 4.2.2:
Invalid SQL:
OPTIMIZE TABLE `filedata`;
MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Friday, January 2nd 2015 @ 05:54:35 AM
Error Date : Friday, January 2nd 2015 @ 05:55:08 AM
Script : http://www.xxxxxxxxxxx.com/admincp/cronadmin.php?do=runcron&cronid=95
Referrer : http://www.xxxxxxxxxxxx.com/admincp/cronadmin.php?do=modify
IP Address : xx.x.xxx.xx
Username : xxxxxxx
Classname : vB_Database
MySQL Version :
Any idea what this is and how to fix it pls
charlesr
01-02-2015, 06:40 AM
Seems pretty straightforward - the database server was down when you tried to backup. Restart it.
On my linux server this is something like /etc/rc.d/init.d/mysqld restart.
Check logs to see if there's any clue why it was down. Maybe your server overloaded? If so, upgrade to one with more RAM or better IO. VB4 really needs 2GB RAM for a largish forum.
Mariner1
01-02-2015, 08:50 AM
Thanks charlesr,server reboot worked.
ozzy47
01-02-2015, 09:57 AM
Hi. This has been working fine until a few days ago.When trying to do backups now i get this error in admincp
Database error in vBulletin 4.2.2:
Invalid SQL:
OPTIMIZE TABLE `filedata`;
MySQL Error : MySQL server has gone away
Any idea what this is and how to fix it pls
I see you got it going by doing a server reboot, that's great. But you may run into the issue again.
MySQL Server has gone away" is a server issue. See this: https://www.vbulletin.com/docs/html/...mysql_goneaway (https://www.vbulletin.com/docs/html/troubleshoot_mysql_goneaway) and this: https://www.vbulletin.com/forum/show...265#post310265 (https://www.vbulletin.com/forum/showthread.php?s=&postid=310265#post310265) You will need to talk to your host about this in order to get it resolved.
Paul M
01-02-2015, 11:38 AM
Hi. This has been working fine until a few days ago.When trying to do backups now i get this error in admincp
Database error in vBulletin 4.2.2:
Invalid SQL:
OPTIMIZE TABLE `filedata`;
MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Friday, January 2nd 2015 @ 05:54:35 AM
Error Date : Friday, January 2nd 2015 @ 05:55:08 AM
Script : http://www.xxxxxxxxxxx.com/admincp/cronadmin.php?do=runcron&cronid=95
Referrer : http://www.xxxxxxxxxxxx.com/admincp/cronadmin.php?do=modify
IP Address : xx.x.xxx.xx
Username : xxxxxxx
Classname : vB_Database
MySQL Version :
Any idea what this is and how to fix it pls
It looks like optimizing that table took longer than your mysql timeout.
It should have run fine again next time.
You dont really need to have that [optimize] option enabled, I would turn it off.
Daniel
01-11-2015, 06:00 AM
Hi :) Will this work for big boards (1mil+ posts & attachments allowed)?
Paul M
01-11-2015, 08:20 PM
I have over two million posts.
Attachments will only be backed up if you store them in the database.
Thats generally not a good idea if you have a lot, as your database will be large.
thunderclap82
01-20-2015, 04:43 PM
Is there a way to configure this so that the database is sent off server to something like Dropbox or Google Drive?
Paul M
01-20-2015, 06:12 PM
Not unless there is a way to specify it as a server path.
ebp123
01-23-2015, 06:51 AM
can someone explain to me how to actually run this backup program? I just installed it and set the backup folder location and am a bit confused.
Paul M
01-23-2015, 02:38 PM
Well the title and description should give you a clue ;)
vBulletin Cron Based Database Backup
It is a simple vBulletin cron trigged php system that does a dump of your database
It runs automatically, thats the purpose of cron based systems. :)
ebp123
01-23-2015, 06:33 PM
So once i set up the backup folder, it automatically puts back ups of my database in it? Forgive my ignorance, im just a lumberjack trying my hand at the internet.
Paul M
01-24-2015, 04:56 PM
So once i set up the backup folder, it automatically puts back ups of my database in it?
Thats the idea, yes. :)
hanm15
01-29-2015, 08:44 AM
Working with 4.2.2?
Fields
01-30-2015, 07:53 AM
Working with 4.2.2?
Yes :)
Thats the idea, yes. :)
Paul,
I guess you know MySQLDumper. Any chance you could implement something similiar to MSQLD?s FTP-transfer into this mod? I?ld always like to have my backups on a secure location, like a dedicated ftp-server or repository, since our harddrive crashed last year and with it - of course - all of our backups were gone, too. What do you think? Makes sense?
spd2612
02-05-2015, 06:21 PM
I installed this quite a while back on 4.2.0 and works very well, so well I keep forgetting about it and I keep filling up my HDD is there a way to limit the number of backups or is it just up to me to remember to clean up my backup folder?
Store your sitemaps in a separate partition of your hdd. So, if you forget to delete them, your site will still work. Elseif the hdd where your forum is on is full, your server will have major headaches - and so will you ;)
MistViper
02-06-2015, 01:26 AM
Downloaded and marked as installed! I have a couple basic questions though. How do I find the back up after it is done? Also should I select yes for combining all tables into one backup file?
Paul,
I guess you know MySQLDumper. Any chance you could implement something similiar to MSQLD?s FTP-transfer into this mod? I?ld always like to have my backups on a secure location, like a dedicated ftp-server or repository, since our harddrive crashed last year and with it - of course - all of our backups were gone, too. What do you think? Makes sense?
I actually have added this functionality to this add-on years ago. I will see if I can release it here. In the mean time, you can check the add-on I published just now which works in conjunction with Paul's add-on.
patracy
01-26-2016, 04:43 PM
[SIZE=2]1) Do I have to turn off my site to run this backup? No.
2) While running backup, does it affect the site performance (slow)? Depending on how large your database is will depend on how much time/server resources your backup will take. It's a cron job so just schedule it to run at the slowest time of the day for your site. A backup is a lot more important than worrying about slowing your site for few seconds or minutes at an off-peak time.
How would one setup the site to turn off during this backup process? Have a rather large db here (1gb zipped). Would rather have the site off, let the backup run, then turn the site back on.
How would one setup the site to turn off during this backup process? Have a rather large db here (1gb zipped). Would rather have the site off, let the backup run, then turn the site back on.
To be honest if your database is reaching a point where it's getting quite big, you should not rely on such plugin anymore but create your own OS based cronjob. In Linux you can make use of crontabs and create a basic bash script that executes the mysqlbackup command.
patracy
01-27-2016, 04:34 PM
To be honest if your database is reaching a point where it's getting quite big, you should not rely on such plugin anymore but create your own OS based cronjob. In Linux you can make use of crontabs and create a basic bash script that executes the mysqlbackup command.
That's true. And actually that's the direction I've been meaning to go in. But I've not been able to find a method on scheduling vB on/off. I suppose I could cron apache on and off, but that'd leave users in the dark.
shimei
01-27-2016, 06:16 PM
That's true. And actually that's the direction I've been meaning to go in. But I've not been able to find a method on scheduling vB on/off. I suppose I could cron apache on and off, but that'd leave users in the dark.
I began a thread here on the subject: Maintenance Page for Cron Backup (https://theadminzone.com/threads/maintenance-page-during-mysql-dump-code-for-cron.138681/#post-1037537)
Davidinh
03-17-2016, 03:44 PM
seem something were missing in the Auto-backup.txt and base on my problem I would like to share to all
Installation
------------
1. Copy all files in the 'includes' folder to the server.
2. Upload the product XML via the Product Manager.
3. Set your choice of options in the ACP (vBulletin Options).
4. Alter the timing of the cron job to suit.
5. To use the (experimental) MySQL backup option, you need to edit the mysqlbackup.php file.
Find var $DTYPE = 'php'; and change it to var $DTYPE = 'mysql'
In a case for new version of mysql you should add var $MYSQLI; (after var $MYSQL) in mysqlbackup.php then change var $DTYPE = 'mysqli' ;
6. Create the new folder as "backups" or what ever you desire for it then set permission as 777
if it is in the root website in AdminCP option should set ./backups/
if it is in the forum directory in AdminCP option should set ../backups/
and so on.
hope it helps
THANK YOU PAUL it is useful mode
Paul M
03-17-2016, 10:18 PM
In a case for new version of mysql you should add var $MYSQLI; (after var $MYSQL) in mysqlbackup.php then change var $DTYPE = 'mysqli' ;
This isnt necessary, and wont do anything.
In fact, if you set $DTYPE = 'mysqli' you will end up using the php backup process.
You seem to be confusing variable names with actual database systems, the fact you are now using MySQLi doesnt affect the variable names.
For the backup path, you should never use a website location (i.e. one thats accessible via a url) such as the two examples you gave, otherwise anyone can potentially just download your backup files.
twlMavRic
03-18-2016, 04:07 AM
Installed and ran backup in just over 11 secs. Works as advertised
Manoel J?nior
03-19-2016, 02:41 PM
Advise not to use this product if you have a forum that goes from 1GB database, I recommend you look for something like mysqldump
charlesr
03-20-2016, 11:05 AM
Any particular reason? Mine is 3.5GB and it works ok. It compresses to a 600MB .gz
I haven't tried restoring it for a while, but it worked a while back ok.
Idawg
03-01-2017, 11:20 PM
I have used this mod for years, on many forums I set up/run for clients..
On my newest forum, I am on 4.2.3 and I uploaded to correct location, set everything under options and when I go to save, it gives me a 404 error????? What is up with that ??
RichieBoy67
03-01-2017, 11:21 PM
File permissions set to 777?
Idawg
03-01-2017, 11:29 PM
On what???
RichieBoy67
03-01-2017, 11:31 PM
Three directory where the back up is to be placed need to he write permissions.
Idawg
03-01-2017, 11:43 PM
Fixed the issue... I had one too many ../ on the path... Fixed that and it works a-okay now :)
Paul M
03-02-2017, 12:41 PM
Advise not to use this product if you have a forum that goes from 1GB database, I recommend you look for something like mysqldump
Only just noticed this, which is complete rubbish.
My forum has been over 1GB for years, and happily using this for years.
(In fact, if you had bothered to check, it actually has an option to use mysqldump, rather than the php based dump routine, built in).
elsa23
03-10-2017, 05:12 AM
Hi,
What is the difference between php and mysql? which one is recommended to use, to can restore in the future with "bigdump"
Because, with "var $DTYPE = 'php';"all its OK.
But when I confgure it to "mysql" , I got this error and the backup folder is empty:
Automatic Database Backup for vBulletin
PHP Warning: Invalid argument supplied for foreach() in ..../includes/mysqlbackup.php on line 626
Backup Completed Successfully
Fait
Thanks
4.2.3 PL2
elsa23
03-11-2017, 02:19 AM
Also, I had set Scheduled Task to "3h" of the nignt, but It do it at "5h", 2 hours later
Paul M
03-11-2017, 02:27 AM
What is the difference between php and mysql? which one is recommended to use, to can restore in the future with "bigdump"
Because, with "var $DTYPE = 'php';"all its OK.
But when I confgure it to "mysql" , I got this error and the backup folder is empty:
'mysql' will attempt to use mysqldump, which in your case looks like it wont work, so just stick to using 'php'.
elsa23
03-11-2017, 12:24 PM
Also, I had set Scheduled Task to "3h" of the nignt, but It do it at "5h", 2 hours later
I'm off topic, but I found also that notifications, via emails, for new replays, arrives 2 hours later, It's a server bug ?
elsa23
03-13-2017, 07:37 AM
I do not understand the time offset :(
orangedays
05-01-2017, 02:35 AM
will this work with version 5?
Paul M
05-01-2017, 10:19 AM
If you manually installed the files, and manually added the cron job, I think it probably would.
However, the product would not install using the normal ACP method.
after restoring a backup created with this product, my database was completely screwed up
this product has a charset bug somewhere, don't use it
I have created a simple cron job instead and it makes proper backups
Paul M
05-09-2017, 12:49 PM
Utter nonsense.
I have restored backups from this for many years, without a single issue, as have many many other people.
Are you saying I'm lying?
Maybe it works on 100% english sites but on forums with any kind of foreign or special characters, this product will cause massive issues.
Paul M
05-09-2017, 12:56 PM
Call it what you want.
This has been around for at least 12 years, if not longer.
(in Fact longer as it was originally written by Trigunflame for 3.0)
I think if it had "massive issues" it would be known about long ago.
Just because YOU had an issue it does not mean everyone else does.
Your product doesn't escape special characters properly
any query with a special character will be interrupted at the special character location
it's very easy to miss
just because I'm the only one who reported this doesn't mean I'm the only one who had issues, it means I'm the only one who noticed the issue AND reported it
Feel free to ignore my report good Sir, I'm just warning other users.
Stratis
05-10-2017, 05:21 PM
Your product doesn't escape special characters properly
any query with a special character will be interrupted at the special character location
it's very easy to miss
just because I'm the only one who reported this doesn't mean I'm the only one who had issues, it means I'm the only one who noticed the issue AND reported it
Feel free to ignore my report good Sir, I'm just warning other users.
Some thing like your problem...
My issue was when i tried to restore, all forum was scrued up. No tables, errors and so on. Maybe because i do not use english language. as you say. I informed developer too.
Any way thanks.
adkaush
05-14-2017, 07:30 AM
Advise not to use this product if you have a forum that goes from 1GB database, I recommend you look for something like mysqldump
How do you get that to work? Where to install it? Total newb here, please advice. Thanks!
Paul M
05-15-2017, 12:49 PM
If you bothered to look, you would know this has the option of using mysqldump as well.
Are you talking about this?
v4.2.0.2 : 25-Nov-2013 : Fix php 5.3 deprecated warnings, added experimental mysqldump backup.
Dear Mr Paul M, we just can rely on experimental products for something as important as database backup.
With all due respect for the quality products you made available for everyone free of charge, this one particular product is a failure. It's your right to not fix it, I respect that, but please move it to the graveyard instead of risking compromising users databases.
Paul M
05-15-2017, 04:46 PM
No.
If you dont want to use it, move on.
Its not a failure nor does it compromise anything.
So far I have tolerated your silly remarks, that stops now.
tokads3
05-31-2017, 07:14 AM
Hello,
Sorry for my average English, I installed this mod on our forum and when I want to run the task, I get this error message
syntax error, unexpected 'new' (T_NEW) on line 18 in /home/*****/public_html/includes/cron/cronbackup.php
#0 {main}
We are in version 4.2.5 and php7.0
Thank you for your help
Paul M
05-31-2017, 01:34 PM
Was that from the latest version above ?
That seems like something removed a while ago, but I have no way to check atm, as im on holiday.
tokads3
05-31-2017, 02:21 PM
Thanks for the reply, I installed the mod again and it worked, thanks
barnsi
10-19-2017, 09:03 AM
We are using this mod since the first day our forum started in 2011 and it is still working with vB4.2.5 and PHP7.
One thing i never could fix: gzip-Compression is not working, i always get this Error in apache-log:
"gzip: command not found"
mod_deflate is active.
What can i do to tell apache to use deflate?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.