Go Back   vBulletin Setup > vBulletinSetup Information > Community Forum Management > vBulletin Tutorials


Please Register to get full access to the forums.
Comment
 
LinkBack Article Tools Display Modes
<!-- google_ad_section_start -->Backing up vBulletin<!-- google_ad_section_end -->
Backing up vBulletin
by Soliloquy
Published by Soliloquy
09-27-2008
Backing up vBulletin

Here are three ways you can make a backup of your vBulletin database. Pick the one that's right for you and make a backup today!

From the vBulletin admin panel

In your admin panel, visit Maintenance -> Database Backup. You can choose which database tables to back up by clicking on their respective radio buttons, or just accept the default of backing up all tables. Submitting that first form will output the entire database directly to you, so ONLY choose that method if you have a small forum.

A much safer option is to backup your database to a file on the server. This file must be writeable via PHP, meaning it must be chmodded 755 or 777 depending on your server. By default it will be saved to the web root, meaning that anyone could download it, so make sure you specify a different path or download the file to your hard drive.

At the bottom of the page, you will find the option to make a comma separated text file backup of a single table. This would be a really inefficient way to back up your entire database, but if you need that data for some other application it might be useful.

Backing up via PhpMyAdmin

If you don't know how to log on to phpMyAdmin, contact your host for instructions.

First, select the name of your vBulletin database from the drop-down menu, or click on the name if it's your only database. Once the database's page loads, click on the Export tab.

Make sure all the tables are selected.

You should probably check off Add Drop Table, which will drop all the tables from the database and overwrite them if you ever restore from that file. You generally want this to happen, else you'll have two copies of everything in each table. Just remember all current data will be lost when you do a restore.

I advise you to check Save to File, else your entire database will be listed on the next page. Click the Go button when you're ready. It will take a while to build the file, but eventually a window will pop up prompting you to save the file.

Backing up via command line

If you have a very large database, backing up via the command line might be your only option once phpMyAdmin starts to time out. Log on to your shell account and at the command prompt enter:
Code:
mysqldump -h -p mydbname | gzip > mydbname.sql.gz
replacing mydbname with your database's name and mydbname.sql.gz with the name you want for your backup file. I suggest including the date. Your database will be dumped and gzipped into that file.

You also need to copy your current vBulletin files to your hard drive, but I'm assuming for the purposes of this tutorial that you already know how to do that. Make frequent backups so you'll always be ready for a server meltdown!
Article Tools

  #1  
By Brandon on 09-27-2008, 06:16 PM
Re: Backing up vBulletin

nice tutorial
Reply With Quote
Comment


Article Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Article Article Starter Category Comments Last Post
Best way of backing up your forum? Greek76 vBulletin Questions 10 06-30-2007 09:49 PM
Backing Up & Restoring a MySQL Database using phpMyAdmin / SSH Brandon Website Marketing Articles 0 09-12-2006 12:34 AM


All times are GMT -6. The time now is 07:27 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory