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
  #992  
Old 09-01-2014, 03:18 PM
doogie88 doogie88 is offline
 
Join Date: Oct 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. That's exactly what I needed too! Filled my server HD after several months of backups!
Reply With Quote
  #993  
Old 09-02-2014, 11:24 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 trick covered many times in this thread, right back to 2010

https://vborg.vbsupport.ru/showthrea...23#post1997323
Reply With Quote
  #994  
Old 09-02-2014, 11:33 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Its a trick covered many times in this thread, right back to 2010

https://vborg.vbsupport.ru/showthrea...23#post1997323
Just one of the thousands of good tips I must have over looked.

Feel free to remind me anytime though because I am getting old.
Reply With Quote
  #995  
Old 09-15-2014, 02:51 PM
delds delds is offline
 
Join Date: Oct 2003
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After just going through an almost 2 day down time after accidentally deleting the wrong database, and finding out that the host which I had paid extra for weekly backups, and now finding out their 2 most recent backups that some tables missing and needing to go back more than 3 weeks to get a backup that had all the tables, I have grown a distrust on counting on the host backups only.

This really works well, just installed it and tried it and it works great.

I have 2 questions, is there a way to set daily auto backups or do I only have the options of weekly? Manual backups can be run at any time.

2nd Is it possible to remove the date prefex on the tables when backed up so for example it would backuup
access.sql
as
access.sql and not 2014-09-15-Access.sql ??

If I ever had to re upload I would not want the prefix on the tables and would have to rename each one first.
The folder gets names by date do I really need the tables with the prefex also?

next when downloading it to my local computer what mode should it be in ascii or binary?
Reply With Quote
  #996  
Old 09-15-2014, 03:37 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by delds View Post
I have 2 questions, is there a way to set daily auto backups or do I only have the options of weekly? Manual backups can be run at any time.

2nd Is it possible to remove the date prefex on the tables when backed up so for example it would backuup
access.sql
as
access.sql and not 2014-09-15-Access.sql ??

If I ever had to re upload I would not want the prefix on the tables and would have to rename each one first.
The folder gets names by date do I really need the tables with the prefex also?

next when downloading it to my local computer what mode should it be in ascii or binary?
Yes, this mod is automatically set for doing daily backups. You need to adjust the "Date Format" option to set how many backups you would like to keep. You will find information on this at this link in the settings: http://uk.php.net/manual/en/function.date.php. What you may have currently set is "W" which will save each backup as the week number of the year. With a setting of "W" every daily backup for 7 days will overwrite itself when created and at the end of the year you will have 52 backups (probably not what you are looking for). I recommend a setting of "D" which will save your backups by day of the week. So you'll have one backup for each day of the week and the following week the backups will begin to overwrite each other. This way you will never have more than 7 backups saved.

Second, the prefix is just added to the file names, the tables contained within the .sql files are unchanged (no prefix added).

Last, when transferring use binary to be safe. Ascii transfers everything as a regular text file which can corrupt some data within the database. I also highly recommend using the option to combine all tables into one backup file and using Gzip. Less chance of issues all the way around.
Reply With Quote
  #997  
Old 09-15-2014, 04:17 PM
delds delds is offline
 
Join Date: Oct 2003
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I believe I have it set to auto backup every morning at 4 am. Single file backup of database gzip version, on the manual run it appears to backup perfectly. Will download to local computer in binary mode.

What software can I use on the local computer just to decompress to test that all tables are present?
Reply With Quote
  #998  
Old 09-15-2014, 04:30 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by delds View Post
What software can I use on the local computer just to decompress to test that all tables are present?
DbVisualizer it has a 21 day free trial which you can download here: http://www.dbvis.com/
There are other programs out there also.

You can always just re-import into mysql as a different database name and view it all there also, then just delete the database when you're done (be careful you're deleting the right database!).
Reply With Quote
  #999  
Old 09-16-2014, 10:33 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by delds View Post
Is it possible to remove the date prefex on the tables when backed up so for example it would backuup
access.sql
as
access.sql and not 2014-09-15-Access.sql ??
That prefix is only on the filename, not the actual backed up table within it.
Reply With Quote
  #1000  
Old 09-21-2014, 03:19 PM
chikuru chikuru is offline
 
Join Date: Nov 2011
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt work on PHP 5.3.2
the window just display blank when clicking RUn Now from scheduled task..
Reply With Quote
  #1001  
Old 09-21-2014, 06:08 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

Sorry, but you are wrong.

It runs perfectly fine on php 5.2, 5.3, 5.4, 5.5 & 5.6

In fact when I first wrote it, and started using it, I was still on php 4.x
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 03:54 PM.


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.08768 seconds
  • Memory Usage 2,322KB
  • 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
  • (4)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
  • (2)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