S
S
Sergey Cherepanov2013-01-28 17:24:46
linux
Sergey Cherepanov, 2013-01-28 17:24:46

Prompt solution for partial one way mysql data sync

Hello!

There is such a task: we have 2 servers, live and admin, the client edits the content on admin and runs complex scripts, after which (only after and not during) you need to copy all the updated data (mysql and files) quickly to live.

There was an idea to use replication for the database, but I'm not sure that this is correct.
Now it all comes down to writing your bike. Maybe there are already free solutions for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
betal, 2013-01-28
@betal

Replication is a good way.
>only after and not during
It is done by commands start slave, stop slave
For rsync files.
If synchronization is one-time, i.e. once after updating the data, you can use the tool from the Maatkit kit, and if it is possible to temporarily disable both databases, synchronize database files or upload using mysqldump

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question