View Single Post
Old 03-14-2012, 08:09 AM  
AdultEUhost
ORLY?
 
AdultEUhost's Avatar
 
Industry Role:
Join Date: Oct 2005
Location: NL & US
Posts: 2,579
Quote:
Originally Posted by longdongsilver View Post
He seems to think that this set up could allow us to do the backups to nas without stopping the master db. I think that is what he was saying.
Well you can always run a mysqldump and then scp it over to a different host or do the mysqldump on the remotehost directly (depending if you have networking enabled for mysql).

If you can't have locked tables etc you should setup replication where server 1 is the master and server 2 is the slave, this is done through binary logs so each write query is performed on both servers. You can perform reads on either one of the servers. In this case you also opt to make the backups on the slave so your master is always able to perform queries.

Quote:
Originally Posted by longdongsilver View Post
From what i am starting to understand, simply copying a db (backing it up) is not the same as replication. Seems its not like just a giant file.
A mysqldump is an export file with all the queries in it to recreate a database, tables and data. Replication is where all queries on a master are replicated to a slave so both hosts contain the same data (if in sync of course).
__________________
ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014
AdultEUhost is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote