The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Automatic Database Back-up Details »» | |||||||||||||||||||||||||
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! Show Your Support
|
Comments |
#72
|
|||
|
|||
Hay
when i hit Scheduled Task Manager on Run Now i got problem :S Code:
Invalid SQL: INSERT INTO upload_cronlog (cronid, dateline, description) VALUES (25, 1146474570, 'Saved backup of databse to /public_html/forum/XXXX on 05-1-2006 at 5:09am (file name 05-1-2006.tar.gz'); MySQL Error : Table 'slipenc_vb.upload_cronlog' doesn't exist Error Number : 1146 Date : Monday, May 1st 2006 @ 05:09:31 AM Script : http://www.XXXXX.com/forum/admincp/cronadmin.php?do=runcron&cronid=25 Referrer : http://www.XXXXXX.com/forum/admincp/cronadmin.php?do=modify IP Address : XXXXXXXXXXX Username : XXXXXX Classname : vb_database |
#73
|
|||
|
|||
Jamshed, It looks like your log_cron_action() function was changed. The default vBulletin table is called cronlog. In your error, it is showing up as upload_cronlog.
What is your table_prefix named? You can find the name by opening the /includes/config.php file and looking for: PHP Code:
PHP Code:
PHP Code:
|
#74
|
|||
|
|||
I cann't get this hack to work on my site! I did as instructed, and chmod the folder as 777, but there is no output sql file when I try to run the cron task!
My host does not specify _SERVER[PATH_TRANSLATED], _SERVER["DOCUMENT_ROOT"] is "/customers/x-cafe.com/x-cafe.com/httpd.www/", therefore I set the File Dump Path as "/customers/x-cafe.com/x-cafe.com/httpd.www/forum/backups". And the backups folder is 777. I received no error message when running cron task, it said DONE. But no file is outputed! Please help! |
#75
|
|||
|
|||
LiveWire Big Thanks problem solve..:banana: :banana:
|
#76
|
|||
|
|||
Quote:
|
#77
|
|||
|
|||
@creedmaniac and tqvn2004: Upload the attached file anywhere on your site and send me a PM of the link so I can check your server settings.
Didn't mean to skip |
#78
|
|||
|
|||
@creedmaniac: Thanks for the quick PM! Okay make sure that your File Dump Path setting is set to the following.
I would suggest place this in a folder outsite of the public_html folder for security reason. To do this, log into your website via FTP. This will place you in the /home/inara/ directory. Create a folder and name it whatever you want. I named mine databack. Once you have finished that. Log into your admincp panel and make your way to the Database Backup Settigs. This is under the vBulletin Options. Make your your File Dump Path settings is set to /home/inara/databack (no ending slash). Then run the cron and give it a good 15 mins to transfer the database to that folder. The time all depends on the size of your database. Let me know if that fixed it. |
#79
|
||||
|
||||
How about an option to have it keep the last X number of backups, and rotate out the old ones as needed? (Sorry if this has already been suggested; I didn't read the whole thread.)
Thanks! |
#80
|
|||
|
|||
LiveWire
get any time to check on my problem? Mysql5 and autobackup? |
#81
|
|||
|
|||
Thanks very Usefull
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|