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

Reply
 
Thread Tools
vB Database Backup Details »»
vB Database Backup
Version: 3.7.001, 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.7.x Rating:
Released: 01-07-2008 Last Update: 04-29-2008 Installs: 514
Translations  
No support by the author.

This modification is no longer available or supported.

Note: Because I did not write the original version, but rather have modified & adapted it, support of this modification may be limited

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 and now for vb3.7.

The original version was by Trigunflame and the rights to the code were bought by Zoints (D.Chapman) in January. 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.

Notes:
* I will not add anything new to this, or spend vast amounts of time supporting it.
* This is a Lite version to allow people to use the basic backup functionality on 3.7.


History:

v3.7.001 : First version for vB 3.7.

Show Your Support

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

Comments
  #292  
Old 11-28-2008, 07:47 PM
CeesT CeesT is offline
 
Join Date: Feb 2008
Location: the Netherlands
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zeus_r6 View Post
Databases that are 600mb+....Everytime I need a backup, the host has to do it on their end since neither VB or phpmyadmin will allow the download without timing out.
If it is too big for this add-on, you could try MySQLDumper
Reply With Quote
  #293  
Old 11-28-2008, 07:48 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

My database is bigger than 600M, works fine for me.
Reply With Quote
  #294  
Old 11-29-2008, 03:07 AM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So this will backup the forum mysql or the whole forum including the directory ?
second question, i have added many arcade games, is there anyway i can have the games
move outside the forum ? my back from 300MB is now like 500 due to all the games i added.
same like the attachments or the avatars ? to save space on the backup ?
Reply With Quote
  #295  
Old 11-30-2008, 02:46 AM
stationar stationar is offline
 
Join Date: May 2007
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to gzip a backup file? The file is too big - 110 MB. And I didn't include two big tables: word and postindex.
Reply With Quote
  #296  
Old 12-01-2008, 12:39 AM
Distance's Avatar
Distance Distance is offline
 
Join Date: Jul 2006
Location: Boston, Uk
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by momo2 View Post
So this will backup the forum mysql or the whole forum including the directory ?
second question, i have added many arcade games, is there anyway i can have the games
move outside the forum ? my back from 300MB is now like 500 due to all the games i added.
same like the attachments or the avatars ? to save space on the backup ?
This will only back up the database, not the files.

Attachments and avatars etc will only be saved if they are set to be stored in your database, if they are stored as files you will need to perform a file backup to backup these files.

Distance
Reply With Quote
  #297  
Old 12-13-2008, 02:23 AM
PCkaosboss PCkaosboss is offline
 
Join Date: Jul 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works 100 %....thx...

Only problem with danish forums is our speciel letters = æ ø å

When restoring database...all speciel letters are gone....replaced with a ?

Should there be a workaround, so i can keep my speciel letters...like æ ø å

One more thing. Will this work with vB version 3.8
Reply With Quote
  #298  
Old 12-15-2008, 04:55 PM
aciurczak aciurczak is offline
 
Join Date: Jun 2005
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aciurczak View Post
Are there step-by-step instructions somewhere about how to restore a vB database using a backup made with this mod? I'm assuming it's something like: load the txt file back up to the server to an area where phpmysql can see it, and point phpmysql to the file to rebuild the DB. But if someone could put together a list of:

- here's what you do (including actual sql commands) to restore the db if it all of the tables in one large combined file
- here's what you do to restore the db if the backup is in individual files by table

it might help folks out and make the overall use of this mod a bit more clear.
I've been using this mod for awhile, but had the first chance to restore the DB, and wanted to post up that it really was a pretty easy process. I have this mod configured to put the whole backup into a single text file. On my host, all that is necessary to restore the database is to put the backup file into the correct directory (_db_backups). You can get it there by FTP'ing it into there if you have it on your own computer, or you can move it over there from the host itself. The file can be named anything, but it has to end with ".sql". Then you just go into Hosting Manager, click on Databases, and hit the pencil icon on the right to edit/restore the database. It will pop up a menu that lists the .sql files in that directory, and one more click and it starts the restore. Thanks again Paul, for this incredibly useful mod.
Reply With Quote
  #299  
Old 12-17-2008, 05:37 AM
aciurczak aciurczak is offline
 
Join Date: Jun 2005
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having trouble with the 30 second time-out. Moved to a new host awhile back with a small database, and all worked fine. Moved another site there with a larger database, and now the backups aren't completing. The script stops right at the 30 second point, with only 40MB or so in the dump file (of the 100 - 110 MB that should be in there).

PHP is not running in safe mode, other possibly relevant PHP settings are below:

max_input_time = 120
post_max_size = 128M
file_uploads = On
max_execution_time = 600
memory_limit = 256M
file_uploads = On
upload_max_filesize = 128M
mysql.connect_timeout = 120

All of those are set in a php.ini file, and correctly show as such in the PHP status from the admincp. Any suggestions on why the script is still stopping at the 30 second mark?

Thanks for any help anyone can provide.
Reply With Quote
  #300  
Old 12-29-2008, 06:51 PM
FCDobbs FCDobbs is offline
 
Join Date: Apr 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know you have answered this a million times, but I just can't seem to specify
the destination folder correctly.

On my Server, my Folder structure is:
anon_ftp
bin
cgi-bin
conf
error_docs
httpdocs
httpsdocs
pd
private
statistics
subdomains
web_users

I have added a folder under the anon_ftp folder and called it dbbackup
I have changed the attributes to 777 for this folder, AND for the anon_ftp parent folder.

All my vBulletin files/folders are stored directly under the httpdocs folder.

In my mysqlbackupconfig.php file, I am specifying the backup directory as

$backup['DUMP_PATH'] = '../../anon_ftp/dbbackup/';

I have tried it with 1 set of double dots, 2 sets, 3 sets, 4 sets, and no sets.....

When I run it, in ALL cases I get the infamous Error message........
"An error occured during the Backup : Could not open Destination SQL file for writing."

What in hell am I doing wrong ?????
Reply With Quote
  #301  
Old 12-29-2008, 07:17 PM
obiefan obiefan is offline
 
Join Date: Jul 2006
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THANK YOU! THANK YOU! THANK YOU!

This has saved me from the dreaded "phrase" file has crashed.
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 05:19 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.05401 seconds
  • Memory Usage 2,314KB
  • 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
  • (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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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