Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

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

I found about 40gigs of backups for everyday for the last year. Is there any way to delete them automatically after a few days?
Reply With Quote
  #963  
Old 04-21-2014, 02:28 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
ERROR 1062 (23000) at line 3555885: Duplicate entry '37560' for key 'PRIMARY'
ERROR 1062 (23000) at line 3555886: Duplicate entry '37561' for key 'PRIMARY'
ERROR 1062 (23000) at line 3555887: Duplicate entry '37562' for key 'PRIMARY'
ERROR 1062 (23000) at line 3555888: Duplicate entry '37563' for key 'PRIMARY'
ERROR 1062 (23000) at line 3555889: Duplicate entry '37564' for key 'PRIMARY'
ERROR 1062 (23000) at line 3555891: Duplicate entry '37565' for key 'PRIMARY'
ERROR 1062 (23000) at line 3555892: Duplicate entry '37566' for key 'PRIMARY'
ERROR 1062 (23000) at line 3555893: Duplicate entry '37567' for key 'PRIMARY'
ERROR 1062 (23000) at line 3555894: Duplicate entry '37568' for key 'PRIMARY'
Quote:
ERROR at line 3555919: Unknown command '\"'.
ERROR at line 3555919: Unknown command '\"'.
ERROR at line 3555919: Unknown command '\"'.
ERROR at line 3555919: Unknown command '\"'.
When I attempt to 'import' a database through shell.. Used this cron to make a backup. The duplicate entry errors, getting tons of them... And with tons, I mean thousands (and more). Importing it into an empty database. What exactly is wrong?

EDIT:

There's more...

Quote:
ERROR 1064 (42000) at line 3555895: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '37569','-1','viewing_users_album','wol','Viewing User\'s Album','vbulletin','vBu' at line 1
Quote:
ERROR 2005 (HY000) at line 3555919: Unknown MySQL server host 'size="2">A' (1)
ERROR at line 3555920: Can't connect to the server
Reply With Quote
  #964  
Old 04-21-2014, 06:56 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doogie88 View Post
I found about 40gigs of backups for everyday for the last year. Is there any way to delete them automatically after a few days?
Under options:
Combine Files set to: Yes
Date Format enter: D
GZip Files: Yes

This will save your backups like this:
Prefix-Mon-Full-Backup.sql.gz
Prefix-Tue-Full-Backup.sql.gz


....this way you will only have 7 daily backups (one for each day of the week) that will overwrite each other the following week.
Reply With Quote
  #965  
Old 04-27-2014, 07:17 PM
Soapchick Soapchick is offline
 
Join Date: Apr 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul M, I can't tell you how many times this mod has saved my butt. The backups work perfectly with bigdump. I just wanted to say thank you.
Reply With Quote
Благодарность от:
tbworld
  #966  
Old 05-28-2014, 03:41 PM
Pyanepsion Pyanepsion is offline
 
Join Date: Apr 2014
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I installed Auto-Backup for Vbulletin 4.2.2 patch level 1 but that doesn't work. When I start instant backup this message error appears :

Backup Error : Could not write to destination file ( ../../backups/wmp-2014-05-28-Full-Backup.sql )

You can see my configuration on there screnshots :
http://img11.hostingpics.net/pics/578120backup.jpg
http://img11.hostingpics.net/pics/391972backup2.jpg
Reply With Quote
  #967  
Old 05-28-2014, 04:07 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 Pyanepsion View Post
Hi,

I installed Auto-Backup for Vbulletin 4.2.2 patch level 1 but that doesn't work. When I start instant backup this message error appears :

Backup Error : Could not write to destination file ( ../../backups/wmp-2014-05-28-Full-Backup.sql )

You can see my configuration on there screnshots :
http://img11.hostingpics.net/pics/578120backup.jpg
http://img11.hostingpics.net/pics/391972backup2.jpg
Check your file permissions. Usually that folder has to be set to chmod 777 so it can be written to. Either that or your file path is wrong. And you do not need to put the name of the file in the file path if that is what you did..

Go into Vbulletin under maintanance, phpinfo and get your path there. Yours is wrong.
Reply With Quote
2 благодарности(ей) от:
Paul M, tbworld
  #968  
Old 05-28-2014, 04:48 PM
Pyanepsion Pyanepsion is offline
 
Join Date: Apr 2014
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The visible path was not good. Thank you very much RitichieBoy67.
Reply With Quote
  #969  
Old 05-28-2014, 05:10 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 Pyanepsion View Post
The visible path was not good. Thank you very much RitichieBoy67.
My pleasure.
Reply With Quote
  #970  
Old 05-29-2014, 09:12 PM
tironcitironci tironcitironci is offline
 
Join Date: Jun 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: Assigning the return value of new by reference is deprecated in ..../includes/cron/cronbackup.php on line 18
Backup Error : Could not write to destination file ( ../backups/2014-05-29/Forum-2014-05-29-Access.sql )

i got this :/
Reply With Quote
  #971  
Old 05-30-2014, 12:03 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

You need to update to the latest version (4.2.0.2).

Quote:
v4.2.0.2 : 25-Nov-2013 : Fix php 5.3 deprecated warnings, added experimental mysqldump backup.
Reply With Quote
Reply

Thread Tools

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 02:27 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.08721 seconds
  • Memory Usage 2,331KB
  • 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
  • (8)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
  • (17)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)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