![]() |
Quote:
|
It's installed there. I got the hack from here. Kentaurus put it out. ;)
|
This is exacly what I need. But where, or how do I know if I have SQLDump o.O
|
my problem :
Backup db Fait vBulletin v.3.0.0, Copyright ? 2000-2004, Jelsoft Enterprises Ltd. Tous droits r?serv?s - Version fran?aise vbulletin-fr.org Fatal error: Call to undefined function: query() in /home/users/xmen/html/forum/includes/functions.php on line 500 config Code:
// Set these vars up to to suit your server |
Hey guys sorry for the delay, I will be updating this one soon, been very busy past few weeks. I'm going to test version 2 on a big database tonight, if all gose well it will be released in the next few days.
Improvements: Email sent to $technicalemail addy when back-up process begins and finishes. Search/postcache index cleared before dump is made, and re-built upon completion (yes/no option) Session table cleared before backup-up Board closed before back-up, and turned back on after Custom 'board closed' message displayed while back-up is in process, it was added to ensure no one would be accessing the database via the board while it was begin backed up. |
Quote:
|
Version 1.3 has been released, the only change is the ability for the script to leave cron logs, sorry I missed that.
I also updated the first post with some better install instructions, and more info on v2.0 |
Hey Brad :)
Is there a possibility to save the backup on different server? Did you plan something like that for a future version? |
I have not thought about it but ill look into it.
|
Quote:
The same Error untill now Fatal error: Call to undefined function: query() in /home/vbulleti/public_html/includes/functions.php on line 500 its working and saiving backup but without any cahnge with first version. I waite version 2.0 :up: Regards alkahf |
Quote:
I get this message when I run the script manually, (the backup is made!) When I try to run the script automated nothing happens! (no backup is made) cLord :( |
Seems im getting the same error as some others.
Quote:
PHP Code:
PHP Code:
|
I have the same problem running 3.0.1
PHP Code:
Thank you. |
Removed the compression option but same error.
How can I check that I have full backup? |
GOT IT!!!!
I disabled Log Entries in the Schedule Task and now it works. ;) |
Quote:
|
Quote:
|
*sigh* This isn't even working. It was before then it just stopped.
All it says is back up done. but it just shows the .tar.gz file in the folder with nothing in it. |
Version 1.3.1 was released and fixes all bugs in 1.3, please let me know how it gose for you.
|
Hi Brad.loo,
You forget this line in your script define('DUMP_DATE', $file_date); |
another question.
What about to include /includes/config.php in your db_backup script and just add the two lines to the config.php PHP Code:
This will reduce the time for implement this script to another vB and also the paramters for the DB are centralized in the config.php and not twice in your script too. I didn't try it right now, but I think this will work. |
Quote:
|
Quote:
As for the DATE define it was replaced by a var, unless you spotted an old call to it that I missed? :) |
O I see the missed call, I will update the script in a few minutes.
|
Ok fixed that little error, also made the file name more readable (it will be month-day-year.sql now).
No version change, but the file in the first post has been updated. :) |
This is the name of my back up file now:
DUMP_DATE.tar.gz It didn't pass the date to it. When I add back this line: define('DUMP_DATE', $file_date); It works right. |
Quote:
This change is used to get the db_data directly from config.php without having this data in more scripts. Okay, here we go: step1: open your /includes/config.php file and find: PHP Code:
PHP Code:
Save and store config.php step2: now open your db_backup Script in /includes/cron folder. Should be named vbcron_db_backup_131.php and replace: PHP Code:
PHP Code:
now replace: PHP Code:
PHP Code:
now replace PHP Code:
PHP Code:
step5: upload config.php to /includes/ upload vbcron_db_backup_131.php to /includes/cron and look how it works ;) |
Quote:
Just search for PHP Code:
PHP Code:
|
There's something wrong because it isn't doing anything now. It says it made the backup, but it was alot quicker than normal and there is no file there. I followed your instructions exactly. :(
|
Boofo, you are right ;)
I was in a hurry while posting the changes and do a mistake in step3 ! Please do again step 3 and the change will work, I forgot to replace the old variables with the new one from config.php Sorry ! |
Okay, I wrote down the installation instruction for the change to handle all database parameters directly from config.php in few lines.
|
Quote:
|
Ok, it works. I had to change this (in your instructions file):
PHP Code:
PHP Code:
|
Quote:
Thanks Boofo ;) |
Sorry for all the updates guys, fixed that last missed DUMP_DATE. No version change but new file in the first post.
Haven't been getting much sleep as of late, so thanks for catching all these for me, I belive the one up now should be stable enough to run until I get 2.0 wrapped up :) |
Quote:
|
For my "old" friend Boofo now a restore script for the database backups to try.
All is explained in the script itself, and please corect my bad english, I'm german and learned english only in school ;) Please remove the script after testing from your server because it's a to big security risc to leave them at the server! Should be only used if a restore of an backup must be done. |
Quote:
|
pb :
Backup db Database backup script was invoked without error, to check that it was done correctly see if the file was written to the folder you specified in the configuration variables. It may take some time before your server finishes backing up depending on the size of your database ? |
Quote:
The script will not automaticly throw a 'done' message like most vbcron scripts. |
All times are GMT. The time now is 08:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|