Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBulletin Cron Based Database Backup Details »»
vBulletin Cron Based Database Backup
Version: 4.2.0.2, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.2.x Rating:
Released: 12-27-2009 Last Update: 11-25-2013 Installs: 1434
Uses Plugins
Additional Files Translations  
No support by the author.

As of 23 Nov 2017 this modification has been withdrawn.

This is a cut down version based on a backup system written by Trigunflame for vb 3.0. It is a simple vBulletin cron trigged php system that does a dump of your database - either as one complete file, or as one file per table. Especially useful now that IB removed the old ACP backup option in vBulletin 4. Files can be (G)Zipped to save space.

All the options are located in the ACP in vBulletin Options >> vBulletin Automatic Backup

To install, download and unzip the files, and follow the instructions in the text file.


History:

v4.0.1 : 28-Dec-2009 : Initial release for vb 4.0.0 Gold.
v4.0.2 : 29-Dec-2009 : Added ability to block process larger tables.
v4.0.3 : 27-Jun-2010 : Added Gzip option.

v4.1.0 : 04-Dec-2010 : Updated for vBulletin 4.1.0.

v4.1.7.0 : 16-Oct-2011 : Updated for vBulletin 4.1.7.

v4.2.0.0 : 24-May-2012 : Updated for vBulletin 4.2.0.
v4.2.0.1 : 17-Mar-2013 : Removed vboptions from backup call..
v4.2.0.2 : 25-Nov-2013 : Fix php 5.3 deprecated warnings, added mysqldump backup.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #522  
Old 09-20-2011, 03:27 PM
fldewey fldewey is offline
 
Join Date: Sep 2011
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfect - thank you.
Reply With Quote
  #523  
Old 09-28-2011, 05:45 AM
DaVitsche DaVitsche is offline
 
Join Date: Jul 2011
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no matter what I try I keep getting this error
Backup Error : Could not write to destination file ( ../testbackups/2011-09-28/Forum-2011-09-28-Access.sql )

I manually created the folder /testbackups and the folder /2011-09-28 gets created automaticly.
I've set 777 to the testbackups folder and all subfolders, but the file itself isn't being written.

This is the path I filled in Vbulletin automatic options: ../testbackups/

What am I missing?

after losing 8 years worth of content after 2 issues I want those backups to work!
Reply With Quote
  #524  
Old 09-28-2011, 12:20 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its a permissions error of some kind, you probably need to speak to your host.
Reply With Quote
  #525  
Old 10-07-2011, 03:09 PM
charlesr charlesr is offline
 
Join Date: Aug 2009
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the same problem as DaVitsche - no amount of permission fiddling would work. Moving the backupfolder inside the normal website structure at the same level as "includes" for example worked fine with chmod 755.
Reply With Quote
  #526  
Old 10-08-2011, 02:39 PM
Trevor Matthews Trevor Matthews is offline
 
Join Date: Oct 2010
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi
I too have the same problem.

backBackup Error : Could not write to destination file ( ../../backups/2011-10-08/Forum-2011-10-08-Access.sql )

I created a folder called backups and put in the forums folder and tried it in the root of the server but I stil get the above error.

Permissions were tried at 777 and 755.

Any idea what I have done wrong?
Reply With Quote
  #527  
Old 10-08-2011, 04:20 PM
Trevor Matthews Trevor Matthews is offline
 
Join Date: Oct 2010
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem solved.

I created a folder called backups and placed it in the same folder as my forum.

I then set the path to backups/
That solved the problem and it now works.

How do I know if I have any InnoDB Tables

And should I set block processing to on and what size should I select?

My forums database is about 40meg on the server and the gzip file is 10meg, does that sound right?

Thanks for a very useful mod.
Reply With Quote
  #528  
Old 10-09-2011, 07:46 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should avoid saving backups anywhere that is acessible over the web (like in your forum folder). If you must, then at the very least protect the folder using htaccess. If you dont anyone can access your backups by typing in the url.
Reply With Quote
  #529  
Old 10-09-2011, 07:47 PM
Trevor Matthews Trevor Matthews is offline
 
Join Date: Oct 2010
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems Cometchat uses InnoDB tables.
I have this installed so have selected that option.
Reply With Quote
  #530  
Old 10-10-2011, 09:14 AM
TeknoSounds TeknoSounds is offline
 
Join Date: Nov 2006
Location: TX
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trevor Matthews View Post
Hi
I too have the same problem.

backBackup Error : Could not write to destination file ( ../../backups/2011-10-08/Forum-2011-10-08-Access.sql )

I created a folder called backups and put in the forums folder and tried it in the root of the server but I stil get the above error.

Permissions were tried at 777 and 755.

Any idea what I have done wrong?
Quote:
Originally Posted by Trevor Matthews View Post
Problem solved.

I created a folder called backups and placed it in the same folder as my forum.

I then set the path to backups/
That solved the problem and it now works.

How do I know if I have any InnoDB Tables

And should I set block processing to on and what size should I select?

My forums database is about 40meg on the server and the gzip file is 10meg, does that sound right?

Thanks for a very useful mod.
You can set the folder outside the forums using the relative path. Such as "../backups/" This path works for me currently. But as mentioned if anything you will need to protect it with a htaccess user/pw to ensure its not immediately accessible from the net.
I see in your previous post you used "../../path/"
That path will go up 2 folders from the VB forums folder. The question is does your linux user have permissions to be able to write to that folder?
And yes, that zip file sounds about right for the correct size.
Reply With Quote
  #531  
Old 10-13-2011, 03:28 AM
FTDave FTDave is offline
 
Join Date: Feb 2002
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you don't install this you are insane.

This little hack has saved me big time!!!!

Thank you!!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05900 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (14)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete