Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2007, 12:14 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Making the Database as Small as Possible

Hey gang. I'm trying to make the database backup of our forum smaller. I know we need to prune some old users and threads. But I was wondering what other ways there are that I might be overlooking.

I know I read somewhere about a way to purge the signature data, but I cannot find it. I was also wondering if avatar info was part of that and, if so, if there's a way to clear that out too.

Any links, suggestions, ideas would be appreciated.
Reply With Quote
  #2  
Old 09-20-2007, 02:26 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you already made sure that your attachments, avatars and user profile pictures are all in the file system, not the database?
Reply With Quote
  #3  
Old 09-20-2007, 02:53 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup, they are all in the file system. I think there are maybe some custom avatars that aren't, but those are very few.

To be honest, keeping signature, attachment and avatar information is not a high priority. We had to change the file structure anyway, so most everyone was going to have to choose a new avatar. We don't use attachments. And signatures have gotten a little out of hand. If there's a way to start from scratch, that would be beneficial for me on a couple of fronts.
Reply With Quote
  #4  
Old 09-20-2007, 06:25 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you say start from scratch, you mean delete all avatars and signatures? Or do you mean start your whole forum over from scratch?
Reply With Quote
  #5  
Old 09-21-2007, 05:30 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want to keep posts and threads and such. Hence the reason for the backup. Extraneous things like signatures and avatar settings and things like that are not important. Anything to make the backup smaller, and by extension make transferring it to the new server not take as long.

I did do a mass pruning of some older obsolete threads and inactive posters. But is there anything else I didn't think of? I seem to remember someone saying you could purge signature data, but I can't seem to find it. Will purging some account settings make a difference/even possible?
Reply With Quote
  #6  
Old 09-21-2007, 10:59 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How big is the DB after dumping?

Xfer'ing a DB over shouldn't be that bad thru ftp, are you using --opt as well when dumping it and then compressing it for xfer to the new server?
Reply With Quote
  #7  
Old 09-21-2007, 07:20 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Server related maintenance isn't really my forte. The fellow who donates his server space is the one handling transferring the backup. He simply requested that I do what I can to make the backup smaller then it was when we did our test run. I think the backup was somewhere in the neighborhood of 56 MB, but that's after it's been compressed. He said it took over 10 hours, and since I know his time is limited, I wanted to make it easier on him.
Reply With Quote
  #8  
Old 09-21-2007, 11:41 PM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do i make my made my attachments, avatars and user profile pictures are all in the file system, not the database?
Reply With Quote
  #9  
Old 09-22-2007, 07:51 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
Server related maintenance isn't really my forte. The fellow who donates his server space is the one handling transferring the backup. He simply requested that I do what I can to make the backup smaller then it was when we did our test run. I think the backup was somewhere in the neighborhood of 56 MB, but that's after it's been compressed. He said it took over 10 hours, and since I know his time is limited, I wanted to make it easier on him.
10 hrs for a 56mb ds xfer to another server, i think there is something else going on with the FTp connections on one of the servers, that should be maybe a 5 minute xfer from server to server.

I wouldn't waste your time compressing it any further, the DB isnt the issue.

Quote:
Originally Posted by momo2 View Post
How do i make my made my attachments, avatars and user profile pictures are all in the file system, not the database?
In the admincp under each option in the left menu, attachments --> attachment storage type, do the same for the others you want to move.
Reply With Quote
  #10  
Old 09-22-2007, 11:17 PM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please explain more:
/path/to/your/attachment/directory
now as an example give me a path ? outside the forum folder or inside ? and for avatars also
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 12:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04862 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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