Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Social Network Marketing Tycoon


You are currently viewing our Social Network Marketing Tycoon as a guest. Please register to participate.
Login



Reply
Forum Backups via SQL Dump suck!
Old 01-23-2007, 10:04 AM Forum Backups via SQL Dump suck!
GeorgeB
Guest

Posts: n/a
Trades:
I hope you all with dedicated or even VPS servers are backing up the MySQL /data directory instead of doing cumbersome error riddled SQL dumps
Reply With Quote
 
 
Register now for full access!
Old 01-24-2007, 01:15 AM
Nintendo's Avatar
Average Talker

Posts: 29
Location: Planet Zeekois
Trades: 0
I hardly ever have trouble with

mysqldump -uXXXX -pXXXXXX database > /full_path/back-ups/good_idea.sql

You just have to repair/optimize the database. For vBulletin, I do that every time I'm about to make a back-up.

This is much better than using phpMyAdmin.
__________________
.
Nintendo is offline
Reply With Quote
View Public Profile
 
Old 01-24-2007, 01:38 AM
garg's Avatar
$100 - $999 Monthly

Posts: 145
Trades: 0
Why would they be error riddled? I've never had a problem with mysqldump.

1) dump:
mysqldump -uXXXX -p > dump.sql

2) transfer:
scp dump.sql user@NEW_Server_IP:/path/to/newsite

3) Restore
mysql -uXXXX -p < dump.sql

yay!
garg is offline
Reply With Quote
View Public Profile
 
Old 01-25-2007, 06:42 PM
Junior Talker

Posts: 9
Trades: 0
Copying a directory is certainly the fastest way to do a restore and I've never had any issues with the integrity although I imagine mysqdump is better to use if you are transferring from one version to another. This is much more of an issue for large sites where a mysqldump import takes hours compared to a few minutes to move a compressed folder backup.

Just be sure to turn off mysql before backing up the folder!
Ted S is offline
Reply With Quote
View Public Profile
 
Old 01-25-2007, 07:28 PM
Moelman's Avatar
Moel-sama

Latest Blog Post:
PC Games to Keep an Eye On
Posts: 1,283
Trades: 0
Quote:
Originally Posted by GeorgeB View Post
I hope you all with dedicated or even VPS servers are backing up the MySQL /data directory instead of doing cumbersome error riddled SQL dumps
What's wrong with doing it that way?

That said I backup my mysql database completely, though I'm not on a dedicated.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
Moelman is offline
Reply With Quote
View Public Profile Visit Moelman's homepage!
 
Old 01-25-2007, 10:50 PM
BamaStangGuy's Avatar
Defies a Status

Posts: 1,779
Trades: 2
Never had a problem using mysqldump.
__________________

Please login or register to view this content. Registration is FREE
- Ford Mustang Enthusiast Website

Please login or register to view this content. Registration is FREE
- General Music Discussion Forum

BamaStangGuy is offline
Reply With Quote
View Public Profile Visit BamaStangGuy's homepage!
 
Old 01-26-2007, 02:13 PM
GeorgeB
Guest

Posts: n/a
Trades:
Yeah I guess I should have stated that this is for larger sites. For smaller sites like forums with less than say 700 to 800 thousand posts I guess an SQL dump would be OK although there is still too much of a chance for something to go wrong IMO.

But for larger sites a mysql dump can take a LONG time and choke your server. They can even stop mid way.

The way I do it, simply tar'ing a directory and untarring it when you need to use it is the safest most efficient way to do it. No issues with import errors and not getting all your data.
Reply With Quote
 
Reply     « Reply to Forum Backups via SQL Dump suck!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.13268 seconds with 12 queries