![]() |
Automatic Database Back-up
Automatic Database Back-up Keywords Automatic, Database, Backup, Cron What this does This is a port of Brad's hack that can be found here. This will backup your database using the vBCron system in vBulletin and send the file to a directory that you specified in the vBulletin Options area. IMPORTANT NOTE TO ALL THAT USE THIS SCRIPT This script invokes an outside process that runs in the backround on your server to backup and compress your database. It is important to remember that this is not an instant process, do not enter you ftp as soon as the script says it is done and try to download your backup. It will likely be incomplete and your server will probbly still be writting the file to disk. I ussally give the process an hour or two before I mess with the file, larger databases will take more time of course. To do list...
Credits Thanks to Brad for allowing me to port this. Install This Product Show your support and click the install button! Testing Information I've been using this for vBHackers.com since I first upgrade. I have all my backups being sent to a directory, outside of the public_html. I've yet to experiance any problems. I have had to use one of the backups before, and all worked well. Product History Wednesday, April 26, 2006 - Public Released Help & Support Before asking for support, please make sure you have done all the necessary changes! If you still need support, please post a reply here and double check that you have clicked the Install Button. I will try to support this hack the best I can. Support is not guaranteed! Please post any bugs and errors here. Hope you like it, feedback is always welcomed! :) |
~ Post Reserved ~
|
cool mod
|
Cool..but I have an error :
Automatic Database Back-up Warning: exec() has been disabled for security reasons in /includes/cron/databack.php on line 21 Fait |
Thanks LiveWire
|
@ apdcanari: Your host has disabled that feature for security reasons. I suggest you contact your host. :)
@ Atakan KOC & Frapegliko: Thanks & No Problem! :) |
Quote:
My host is Informaniak |
Forgive the nOObie question, but does this work using the same system as a SSH autobackup?
I have set-up a script, with a friends help on my server which takes care of my back-ups, but this hack could be useful for other site I work on where I don't have SSH access and can't set-up something similar to my system. But I am very nervous of the AdminCP back-up system. |
installed but there is a error problem
Code:
Warning: exec(): Unable to fork [mysqldump --add-drop-table -h192.000.000.000 -uXXXXX -XXXXX XXXXX 2>/XXXX/XXXX/forums.dacho.co.il/XXXX/04-26-2006-error.txt >/XXXX/XXXX/forums.dacho.co.il/XXXX/04-26-2006.sql] in \includes\cron\databack.php on line 21 |
Quote:
I think it is -C/XXXX/XXXX/dacho.co.il/XXXX/forums |
You have a directory in the zip that has a newer plug-in in it. Which files do we use, sir? ;)
|
installed, I used the first set.. hopefully that is it...
|
Quote:
And it is working great on my site. ;) |
Looks great, might install when we really get in need of it ;)
|
Quote:
|
I try to run the script in Sheduled Tasks and it creates a error-file with this error message:
mysqldump: Out of memory (Needed 661284 bytes) mysqldump: Got error: 2008: MySQL client run out of memory when retrieving data from server |
Do you have any screenshots if available?
|
Quote:
|
thank you, works great here too!
btw all dublicated files are the same exactly. |
Quote:
|
Fixed the zip. Winzip was archiving duplacates for some strange reason.
|
Quote:
|
Both XMLs are the same, the only diffrence was on of the XML files had an extra setting in the Admincp asking you for the name of the file that you want your backup to be called. That setting was a test I was trying, but I never added the code in the databack.php. So everything will work no matter which XML you used. You might just have an extra setting in the admincp that won't work anyways, because I deleted the code before I ever released it. :)
|
Quote:
|
I was making it so it would be the name you selceted in the admincp, then the date. For example: vbhbackup-4-23-06.sql. They have to be unique names for when updating it each day, or they will over-right each other
|
hi all,,
where it saves the database back-up ?????? |
You have the setting in the admincp. Go to Admincp => vBulletin Options => Database Backup Settigs => File Dump Path :)
|
Adding a screenshot of the settings.
|
Quote:
|
Installed..You never know when you will need this one!
|
I backup every 12 hours over-righting the old backup. Then I go to the directory once or twice a week and clean it up manually. Gotta have some work as an admin :p
|
I'm sure I can figure out how to add the setting for it. ;)
|
When you do, don't forget to share it with us. :p
|
Quote:
Code:
Hello, |
Quote:
|
Hi peeps
This dont appear to be working for m8 :( It says Automatic Database Back-up Done yet the folder is empty, I have manually ran this about 5 tims now pmsl.. The php is in the cron directory.... I do have the correct path to the file, found using the php info Perhaps i will have about 5 in the dir in the morning lol Baffled me is :) |
Quote:
|
Where are the options at that you show in your screen shot? I've looked all over and haven't seen it.
I think this is a great idea. You think you can add a way to send out a message to users online saying system maintence is bout to happen, blah blah blah... and disable the board until the download is complete? Then bring it back up and notify the admin that it is done? Makes me think back to the old days of BBSin when TAG or Teleguard did it's tasks. |
Look in the vBulletin Options under Database Backup Settings. ;)
|
Installed it without problems. Great job. That will hopefully protect me more from my forum being hacked...
|
All times are GMT. The time now is 07:05 AM. |
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:
|