Go Back   vBulletin Modification Discussions > vBulletin Discusions > Knowledge Base > Tutorials
Home Register FAQ Members List Calendar Mark Forums Read
vBSEO Info Tags

About This Page: This is a discussion on Backing up mysql manually using Shell access within the Tutorials forums, part of the Knowledge Base category, at vBulletin Modification Discussions. The first thing you want to do is create a directory below root to store your files. I say below root because then they are secure from prying eyes. Users and abusers of the web can only acces files in


Comment
 
LinkBack Tutorial Tools
<!-- google_ad_section_start -->Backing up mysql manually using Shell access<!-- google_ad_section_end -->
Backing up mysql manually using Shell access
Published by Code Monkey
11-16-2006
Tutorial Tools

Featured Tutorials

Want to submit your sitemap to all search engines in one shot?

Use the new sitemap standard to submit your sitemap to all search engines that recognize the standard.
Backing up mysql manually using Shell access

The first thing you want to do is create a directory below root to store your files. I say below root because then they are secure from prying eyes. Users and abusers of the web can only acces files in directories above root. So create your directory below root and make note of the server path to that directory.

Next you need SHELL access. With out SHELL access you can not do this. There are many applications out there to do this like PuTTY and others.

Then you need to log into your server using your root login. If you do not know what this is ask your host for more info.

To back up your database just type in the following line. The user entered parameters are in bold. Notice the p in front of the password.

Code:
mysqldump --opt -Q -u dbusername -pdbpassword dnname > /home/path/to/backup/dir/filename_11_16_06.sql
Change the to whatever the current date is when you back up.

When you want to restore simply change "m1ysqldump --opt -Q" to "mysql".

Code:
mysql -u dbusername -pdbpassword dnname > /home/path/to/backup/dir/filename_11_16_06.sql
It's as easy as that. I recomend that you download a copy of the file to your hard drive. This is much faster and more reliable than trying to backup and restore using a web based application like phpmyadmin. Good luck.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-16-2006, 10:00 PM   #2 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
Cheers, Code Monkey.

I will have to give this a try very soon.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Comment
Tags: , , , , ,





Currently Active Users Viewing This Tutorial: 1 (0 members and 1 guests)
 
Tutorial Tools

Posting Rules
You may not post new tutorials
You may not post comments
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


A vBSkinworks Design Recoded By vBModder.
All Code Distributed On This Site is © 2006 by it's author.
Search Engine Optimization by vBSEO 3.1.0

All times are GMT -7. The time now is 09:53 AM.
Online Users 51
Registered 1
Guests 50
Members 3146
Active Members 230
Threads 1583
Posts 7000
Top poster: Code Monkey (2194)
Welcome to our newest member, tradestore
Most users ever online was 235, 04-11-2007 at 08:59 AM.
Speak Out! vBulletin gets the web talking!


vBulletin Setup SEO

vBulletin graphics resource images