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

Reply
 
Thread Tools
vB Database Backup (Lite) Details »»
vB Database Backup (Lite)
Version: 3.8.006, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.8.x Rating:
Released: 01-09-2009 Last Update: 11-25-2013 Installs: 553
Uses Plugins
Additional Files Translations  
No support by the author.

As of 24 Nov 2017 this modification has been withdrawn.

Note: I did not write the original version, but rather have modified & adapted it.

When vb 3.5 first came out I was using this backup system on my vb 3.0 - and having nothing better to use - I converted it to work on vb 3.5 (here) and since then I have cut it down and adapted it, first for vb 3.6, 3.7 and now for vb3.8.

The original version was by Trigunflame and the rights to the code were bought by Zoints (David Chapman) in January 2007. Later in 2007 David gave me permission to release my adaptation.

I have stripped out much of the extra stuff that I do not use (or indeed, could not get to work). This is a simple (Lite) version that does a php based dump of your database either as one file, or one file per table.

As of version 3.8.002, most of the options have moved to the ACP in vBulletin Options >> vBulletin Automatic Backup

Notes:
* I will not be adding anything new to this modification.
* This is a Lite version to allow people to use the basic backup functionality on 3.8.


History:

v3.8.001 : First version for vB 3.8.
v3.8.002 : Moved most of options to ACP.
v3.8.003 : Moved more options to ACP.
v3.8.004 : Gzip option backported from vb4 version.
v3.8.005 : Split option backported from vb4 version, close option removed.
v3.8.006 : Fix php 5.3 deprecated warning.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
ITDarasgah, JimxJNM, Lemrith, M Shaker

Comments
  #42  
Old 01-21-2009, 11:39 PM
Nadeemjp Nadeemjp is offline
 
Join Date: Aug 2008
Location: Japan
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*uninstalled*
Reply With Quote
  #43  
Old 01-22-2009, 08:16 AM
starli starli is offline
 
Join Date: Jan 2009
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

-fixed- ^^
Reply With Quote
  #44  
Old 01-26-2009, 04:53 PM
Yonatan Yonatan is offline
 
Join Date: Jun 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I edit "mysqlbackupconfig.php" - to:
PHP Code:
<?php
/*
<!-- $Header: d:\cvs/3.8/Auto-backup/includes/mysqlbackupconfig.php,v 1.1 2008/10/05 15:33:17 pem Exp $ -->
Auto-Backup (Lite) for vBulletin 3.8 - Paul M - v 3.8.001
This lite version is adapted from the original 3.0.x version by Trigunflame.
*/
// ---------- Main Options, alter these to suit your set-up ----------//
  // Combine all tables into one backup file
  
$backup['COMBINE'] = 1;  // 0 = No, 1 = Yes
  // Close Forum during Backup (not recommended)
  
$backup['SHUTDOWN'] = 0;  // 0 = No, 1 = Yes
  
$backup['MESSAGE'] = "The Forum is closed because a database backup is in progress.";
  
// File Saving Information
  
$backup['DATE'] = 'Y-M-d';  // Backup file date format (See http://uk.php.net/date)
  
$backup['PREFIX'] = 'Forum-';  // Backup file prefix, applied to all files
  
$backup['DUMP_PATH'] = './backups/';  // Path to backups folder, must have a trailing slash, folder must be writable.
 
// ---------- Other Options, do not alter unless you understand what you are doing ----------//
  // Backup Options 
  
$backup['LOCK'] = 0// Lock Tables during dump 
  
$backup['REPAIR'] = 1// Repair & Optimize Tables before dump
  // Backup Type To Use
  
$backup['TYPE'] = 2// 1 = Only Specified Tables, 2 = All except Specified Tables
  
$backup['TABLES'] = array(); // Table List - e.g. array('table1', 'table2')
  // Backup Optimizations 
  
$backup['INNODB'] = 0// Set to 1 if you have Innodb Tables 
  // Execution Function 
  
$backup['COMMAND'] = 'exec'// exec, system or passthru
?>
and i change "CHMOD" to "backups" folder to "0777" - and i still get this error:
Quote:
An error occured during the Backup : Could not open Destination SQL file for writing.
help please,
yonatan
Reply With Quote
  #45  
Old 01-27-2009, 12:27 AM
nectons nectons is offline
 
Join Date: Nov 2007
Location: GREECE
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Paul.

It works perfect 2 weeks now without any problem. I have an accident yesterday and i decide to make a restore. Everething worked perfect. ONLY one problem. All my styles messed up.. lost backgrounds, buttons.. everething. I didnt know why.

But.. after a rebuilt style in meintanance all my styles worked again perfect. Is this a problem? Should i have to worry for anything?... I lost many threads/posts and about 50 new registered users.. I dont want to loose more.

Please help me.

And another one question. Is anything i can do to take backup every 3 or 6 hours? Or.. is it possible to takes backups every one hour BUT to delete backups older than 2 days for example? I found if i choose asterisk at month/week/day and choose asterisk at a hour it takes backups every one hour.

But its gonna full the space at my server and maybe it is heavy too.. Can you please tel me if anyway to take backups every 3 or 6 hours or like i said even more frequently at 1 hour but i don have to delete anything my self ?... I mean to somehow the cron to delete backups older than 2 days?
Reply With Quote
  #46  
Old 01-28-2009, 11:18 AM
yingzhou's Avatar
yingzhou yingzhou is offline
 
Join Date: Oct 2006
Location: Ho Chi Minh
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yonatan View Post
I edit "mysqlbackupconfig.php" - to:
PHP Code:
<?php
/*
<!-- $Header: d:\cvs/3.8/Auto-backup/includes/mysqlbackupconfig.php,v 1.1 2008/10/05 15:33:17 pem Exp $ -->
Auto-Backup (Lite) for vBulletin 3.8 - Paul M - v 3.8.001
This lite version is adapted from the original 3.0.x version by Trigunflame.
*/
// ---------- Main Options, alter these to suit your set-up ----------//
  // Combine all tables into one backup file
  
$backup['COMBINE'] = 1;  // 0 = No, 1 = Yes
  // Close Forum during Backup (not recommended)
  
$backup['SHUTDOWN'] = 0;  // 0 = No, 1 = Yes
  
$backup['MESSAGE'] = "The Forum is closed because a database backup is in progress.";
  
// File Saving Information
  
$backup['DATE'] = 'Y-M-d';  // Backup file date format (See http://uk.php.net/date)
  
$backup['PREFIX'] = 'Forum-';  // Backup file prefix, applied to all files
  
$backup['DUMP_PATH'] = './backups/';  // Path to backups folder, must have a trailing slash, folder must be writable.

// ---------- Other Options, do not alter unless you understand what you are doing ----------//
  // Backup Options 
  
$backup['LOCK'] = 0// Lock Tables during dump 
  
$backup['REPAIR'] = 1// Repair & Optimize Tables before dump
  // Backup Type To Use
  
$backup['TYPE'] = 2// 1 = Only Specified Tables, 2 = All except Specified Tables
  
$backup['TABLES'] = array(); // Table List - e.g. array('table1', 'table2')
  // Backup Optimizations 
  
$backup['INNODB'] = 0// Set to 1 if you have Innodb Tables 
  // Execution Function 
  
$backup['COMMAND'] = 'exec'// exec, system or passthru
?>
and i change "CHMOD" to "backup" folder to "0777" - and i still get this error:


help please,
yonatan
you must creat a folder name: $backup['DUMP_PATH'] = './backups/

not backup.
Reply With Quote
  #47  
Old 01-28-2009, 11:24 AM
Yonatan Yonatan is offline
 
Join Date: Jun 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yingzhou View Post
you must creat a folder name: $backup['DUMP_PATH'] = './backups/

not backup.
Oops :S
by mistake i wirte "backup" instead of "backups".
but, in backups folder. it's make folders(like: 2009-Jan-28 and etc), but not sql files.
Reply With Quote
  #48  
Old 01-29-2009, 07:56 AM
Lautaro's Avatar
Lautaro Lautaro is offline
 
Join Date: Jan 2009
Location: United States
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a few questions about this modification:

1.- How do I secure the 'backups' folder?? ( CHMOD settings )
- is this a good configuration of it?


2.- Where do i change the time when I want the backup to be made?

3.- Is there any way to make the backups path outside the public_html folder?
when saying outsite public_html i mean here:

making a folder there called backups..
if yes, how will the backup path be?
my forum is located here: '/public_html/forum'

Thats all.
Reply With Quote
  #49  
Old 01-29-2009, 02:47 PM
FCDobbs FCDobbs is offline
 
Join Date: Apr 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul, thank you for this mod.
It is working fine for me.

One issue I have is with the number of backups being taken/stored (1 per day).
After a few weeks, my site hosting company is going to start charging me
for the extra disk space I am using.

I know you have no plans to modify this Mod and I don't expect you to.

But could you advise as to how I might be able to set up a CRON job to delete folders which are more than 7 days old ?

Thanks
Reply With Quote
  #50  
Old 01-30-2009, 12:59 AM
JonUrban JonUrban is offline
 
Join Date: Jul 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dumb question 101:

I installed the product, followed the directions. However, I am not sure how to

4. Alter the timing of the cron job to suit.

I'm not a real web expert, just a plodder. Can someone point me in the right direction?

THANKS
Reply With Quote
  #51  
Old 01-30-2009, 05:14 AM
Yonatan Yonatan is offline
 
Join Date: Jun 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JonUrban View Post
Dumb question 101:

I installed the product, followed the directions. However, I am not sure how to

4. Alter the timing of the cron job to suit.

I'm not a real web expert, just a plodder. Can someone point me in the right direction?

THANKS
Go to ACP -> Scheduled Tasks -> Scheduled Task Manager - Now edit "Automatic Database Backup for vBulletin 3.8" and save!

Good luck
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:02 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.05661 seconds
  • Memory Usage 2,345KB
  • 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_php
  • (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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (4)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