The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Vbulletin Database Backup Pro (Cron Support) Details »» | |||||||||||||||||||||||||||
Vbulletin Database Backup Pro (Cron Support)
Developer Last Online: Nov 2019
NOTICE: 02/03/2006 This system is being "ReBorn" into a new product "Vbulletin Backup Pro" working from a New Codebase and hopefully implementing all the features and fixing all the bugs that were present in the previous releases. This will be developed specifically for the vbulletin 3.5 system but will probably maintain compatabilty with the pre-existing 3.0 versions. Summary: Vbulletin Database Backup Pro is just what it says; a professional tool for your Vbulletin installation. This script will handle the automated backup of your forums in a secure, data-conscious and optimized way. Introduction: I want to interest all of you in the ultimate solution for automated database backup from within Vbulletin crontab system. And potentially more so than a standard crontab. It's been said, backing up without direct shell access is futile. Wrong. This script is optimized to work just fine with even the largest of databases. (Note: If you have an extremely large database, make sure to use the mysqldump binary option that is selected by default.) The reason for the creation of this script was due to needing a better system of automated backup. I think me and a lot of people have used either a standard cron system, or brad.loo's small database cron; while they can be somewhat effective, they do not provide the functionality or a total solution without having to extensively mod it. This system has automatic failovers for MySQLdump, as well as the compression programs used where applicable. All in all, this script is a one stop shop for handling your backup needs on a automatic basis or from the control panel without having to use shell and do a dump manually. Features:
Change log:
To-Do:
Known Issues:
Instructions:
Help Debugging: This may come as a surprise to some people.. but I do all my code in notepad, thus it may not look formatted right for people that use editors. If you want to view the code in "my" style, how its supposed to look. Open my files in Notepad, with Font size 10-Regular-Lucida Console. As for An errors you may get, when you post; Post your PHP Version, MySQL Version, and the Error as is Shown Please. Further Info: I would like a lot of people to try this script and give me feedback on what you would like changed, what Needs changed and so on and so forth. With the size of this script, it more than likely not gonna work perfect on every system.. so just tell me whats wrong and I will try to get it fixed. Show Your Support
|
Comments |
#122
|
||||
|
||||
Thanks for this Great Job!!
|
#123
|
|||
|
|||
When I am trying to run this i get an error Failover was initiated for MySQLDump Binary & An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.
Can you explain me what i am doing wrong ? |
#124
|
|||
|
|||
Did you chmod the folder that the backup is being written into to 777?
Are you using an absolute path to the backup folder (i.e. /home/user/public_html/backup/) or wherever it is? Also, if you are running it again on the same date, make sure that there is not a file in the backup folder with that date already... hth |
#125
|
||||
|
||||
Quote:
------- But yes, cyber is right, make sure you are chmodding the directory you are wanting to save the dump to, 777. Also make sure the path is valid. Either use a full path, or a path relative to the main forum directory. For example I use: $backup['DUMP_PATH'] = 'admincp/backups'; Which saves the dump to the backups folder inside my admincp folder. |
#126
|
|||
|
|||
When I ran the database backup via cron -- it worked perfectly -- but it did not compress the FILE -- and it left my forums closed with the default "backing up the database" message.
Any suggestions? |
#127
|
||||
|
||||
Quote:
------ What compression settings are you using, Mysqldump or PHPdump etc.. |
#128
|
|||
|
|||
I ran the cron manually -- and it works perfectly. I didn't get any error messages on the screen.
These are the compression settings from the config file: $backup['COMPRESS'] = 1; $backup['BUFFER'] = 1048576; $backup['COMPRESSION']= 'gz'; $backup['COMPRESSORS']= array( 'gzip' => 'gzip', 'bzip2' => 'bzip2', 'tar' => 'tar', 'zip' => 'zip' ); |
#129
|
||||
|
||||
Quote:
to zip, or tgz.. As for the script not setting your forum back up.. that really doesnt make sense, unless for some reason something is causing premature termination of the script, sometimes calls to functions that don't exist will do that.. What php, mysql version are you using? |
#130
|
|||
|
|||
Mysql = 4.0.22
Php = 4.3.10 |
#131
|
|||
|
|||
I figured out what i was doing wrong Thanks great script.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|