MySQL Forums
Forum List  »  Replication

automating backup in a replicate envrionment
Posted by: Chris McClenaghan
Date: January 10, 2005 04:49PM

I have a simple replication scheme setup to replicate a simple database. There are only two servers in the scheme. However, at any point in time, one or the other of the servers can be the master and the other the slave by executing the appropriate commands to each server (stop slave, reset master, change master, etc). This is all working quite well. I need to provide a shell script to backup both servers, but the script must recognize which server is the master and which is the slave at the time the script runs from crontab.

I haven't found any command that directly answers the question and trying to use show processlist, show master status or show slave status doesn't seem to give a clear answer once both servers have played both roles.

Thoughts, ideas?

Thanks!

Options: ReplyQuote


Subject
Views
Written By
Posted
automating backup in a replicate envrionment
3935
January 10, 2005 04:49PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.