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 10-12-2006, 02:11 AM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Backing up forums?

What is the easiest and best way to do it.
In case a smod or admin went crazy and mass pruned all the threads for example... What would be the best way to back it up, and restore it
If its complicated maybe a little instruction
Reply With Quote
  #2  
Old 10-12-2006, 04:31 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

Search the add-ons area for one of the auto backup mods.
Reply With Quote
  #3  
Old 10-12-2006, 05:05 PM
Guest210212002
Guest
 
Posts: n/a
Default

Have a look at my sig.
Reply With Quote
  #4  
Old 10-12-2006, 05:12 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx, I am currently using phpmyadmin on backing up the SQL file, But Ive heard so many people say, if the SQL file is too big. You will have problems restoring it?
Reply With Quote
  #5  
Old 10-12-2006, 05:16 PM
Guest210212002
Guest
 
Posts: n/a
Default

Yeah, if you're looking to upload a big SQL dump via HTTP, it'll almost always time out on you. (In my experience, anyway).

The best/cleanest way to do it is to upload the raw dump itself via FTP, and then import it using a shell. That way, your backup file is on the server, as is the new database that you're importing your data into. No timeouts, and it's a one-liner command.
Reply With Quote
  #6  
Old 10-12-2006, 05:19 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Importing it using shell? Im brand new to this still, So After I take my SQL File I have backed up from phpmyadmin , I would....

Also Whats the difference between a GZIPPED and a SQL file? Don't they backup the same things.
Reply With Quote
  #7  
Old 10-12-2006, 05:22 PM
Guest210212002
Guest
 
Posts: n/a
Default

GZip is a compressed version of the file, just like WinZip, Rar, etc. the .sql is the raw, uncompressed file.

To backup/restore using the way I'm talking, you'd need to have shell access to your server (SSH). It's a secure terminal that gives you command-line access to the box itself. If you don't have a direct SSH connection, a lot of hosts (using things like Virtuozzo) have a java-based SSH window that you can use as well.

If your host offers you neither, the best bet for you would be to backup your database, upload it, and then just have their support team run the import locally on the server. If they give you any grief about it, tell them that you either:

a) Need shell access to do it yourself.
b) Need another host that will allow you to SSH, or help you out.

PHPMyAdmin timeouts are super common, especially with big filesizes. The only other option you have would be to manually chop the .sql file into smaller bits and import them one at a time. And that, let me tell you first-hand, absolutely, positively SUCKS.
Reply With Quote
  #8  
Old 10-12-2006, 05:28 PM
aberg aberg is offline
 
Join Date: Jul 2004
Location: Netherlands
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use putty ( it's free) and login through SSL.

Than:

mysqldump --opt -Q -u dbusername -p databasename > /path/to/backupname.sql

Works also for large forums very good.
Reply With Quote
  #9  
Old 10-12-2006, 05:29 PM
Guest210212002
Guest
 
Posts: n/a
Default

I use cygwin.
Reply With Quote
  #10  
Old 10-12-2006, 05:46 PM
da420 da420 is offline
 
Join Date: Nov 2005
Posts: 1,232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To backup my raw files I use bairy's backup utility. I use Paul M's database backup utility for my database.

Before I was doing it manually via shell, but this makes it that much easier.

Really simple and fool proof.
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 07:05 PM.


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.07755 seconds
  • Memory Usage 2,239KB
  • 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
  • (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
  • (6)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_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