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
  #702  
Old 09-02-2012, 02:08 PM
dorans's Avatar
dorans dorans is offline
 
Join Date: Dec 2010
Location: Novi Sad, Srbija
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:up:
cca 900MB
Thanx
Reply With Quote
  #703  
Old 09-02-2012, 11:52 PM
Mauro79 Mauro79 is offline
 
Join Date: Apr 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the backup does me fine, but when I put everything in the localhost - attachaments and avatars are not.
may be corrupted?
What configuration of hack me?
thanks
Reply With Quote
  #704  
Old 09-03-2012, 09:40 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mauro-

It is likely you have attachments and avatars set to be saved in the file system- this mod only backs up the database. You need to worry about coping files separately.

Admin CP -> Attachments -> Attachment Storage Type
and
Admin CP -> Avatars -> User Picture Storage Type

These places will tell you where your attachments and avatars are stored.
Reply With Quote
  #705  
Old 09-03-2012, 10:01 AM
charlesr charlesr is offline
 
Join Date: Aug 2009
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mauro79 View Post
the backup does me fine, but when I put everything in the localhost - attachaments and avatars are not.
may be corrupted?
What configuration of hack me?
thanks
Assuming you have also put the filesystem into localhost..... Don't panic. When restoring the forum locally you need to specify the local location for the attachments etc. It's a hidden menu.

To get things working:
Update local path in /includes/config.php
Update email options settings in vbulletin admin panel to reference new url (along with all the other settings)
I had my attachments stored in the filesystem and in vbulletin, in a location specified as a crazy full server path which can only be changed by switching to debug mode: $config['Misc']['debug'] = 1; <<by adding that to the 2nd line of the config.php). Then a hidden item in the admin panel's option menu appears for "untouchables" (2nd on the list!) where the path can be changed (remembering to remove the debug mode line afterwards from config.php).
Reply With Quote
  #706  
Old 09-03-2012, 01:53 PM
tonym's Avatar
tonym tonym is offline
 
Join Date: Mar 2006
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
The mod will always instruct the server to gzip the file (if you have the option set). If its not doing it sometimes then thats a server side issue.
Any idea what we should tell our host about this error? I have this mod installed on 2 forums and a test forum.

all stopped working on aug 30th 2012.....my host dont seem to think its them..all files on my side have not changed and even reinstalled the mod...still no gzip.


Host just emailed back and said everything fine on the server

The gzip is installed on the server and working fine. Please have a look:

======================================
root@rs2 [~]# which gzip
/bin/gzip

root@rs2 [~]# gzip -V
gzip 1.3.5
nothing has changed on my end.......time to find a new host I guess
Reply With Quote
  #707  
Old 09-03-2012, 09:56 PM
Mauro79 Mauro79 is offline
 
Join Date: Apr 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have everything stored in the database.
mm do not quite understand your answers. My English is bad.

http://i.imgur.com/Bmhkf.png
http://i.imgur.com/aFyTO.png
http://i.imgur.com/s5ge5.png

probe twice with two backs.
Thanks for your answers.
Reply With Quote
  #708  
Old 09-03-2012, 10:57 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see you've made a separate thread- https://vborg.vbsupport.ru/showthrea...66#post2362366

Good idea because the error does not seem to be related to this mod.
Reply With Quote
  #709  
Old 09-04-2012, 01:22 AM
tonym's Avatar
tonym tonym is offline
 
Join Date: Mar 2006
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Unfortunately, I cannot help you with server issues. The mod will issue the command to gzip them, if the server fails to do this then you need to speak to your host to investigate why. An easy test would be to connect via SSH, navigate to the folder and type gzip <filename>.
on 4.2

I can ssh and gzip the files
but it still dont work from the MOD, gzip in this MOD has worked for 2 months since I installed it. It just stopped working a few days ago....

thanks for any help

I have installed at another host also...same problem
Reply With Quote
  #710  
Old 09-10-2012, 05:00 PM
Superorb Superorb is offline
 
Join Date: Feb 2012
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have found a script that incorporates a feature that will delete backups that are X days old. Is there a way to incorporate it into this Mod? Maybe in the next release?

http://www.wjunction.com/48-technica...up-script.html
Reply With Quote
  #711  
Old 09-17-2012, 12:34 PM
Trumpetrhapsody Trumpetrhapsody is offline
 
Join Date: Oct 2009
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tossed this code in there to keep only the latest 5 backups:

Code:
// Delete Old Backups
	function deleteOLD($directory)
	{
		$dirs = array($directory);
		$files = array();
		$files = array_merge($files, scandir($directory, false));
		unset($files[0]);
		unset($files[1]);
		sort($files);

		// Loop over all but the 5 newest files and delete them
		// Only need the array keys (filenames) since we don't care about timestamps now as the array will be in order
		if (count($files) > 5)
		{
			for ($i = 0; $i < (count($files) - 5); $i++)
			{
				// You'll probably want to check the return value of this too
				$file = $this->DUMP_PATH.$files[$i];
				$this->removeFile($file);
				echo "<i>[Deleting Old Backup - $file]</i><br />"; vbflush();
			}
		} else { echo "<i>[No Old Backups to Delete.]</i><br /><br />"; vbflush(); }
		
		
	}
You can call it whenever you want, I put it after the "Repair and Optimize" section, before the "Start Initial Dump" section.
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 08:48 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.06667 seconds
  • Memory Usage 2,330KB
  • 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
  • (1)bbcode_code
  • (3)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
  • (3)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