Closed lalinsky closed 10 years ago
Any update to this? Is there currently any way to replicate? :)
The server exports replication packets, but there is nothing to apply them on a slave database. If you are interested in writing that script, please let me know. :)
Sure, I'll look into it when I get some free time. Are the packets still generated using dbmirror?
The replication uses a little different format from what MB uses, but the workflow is the same.
You basically have to do:
N = current_replication_sequence + 1
http://acoustid.org/data/replication/acoustid-update-$N.xml.bz2
I've implemented it for MusicBrainz some time ago, so you could use this for some ideas: https://github.com/lalinsky/musicbrainz-server/blob/acoustid/admin/FetchAcoustidUpdates
Great, thanks so much Lukas. I'll give it a shot soon.
Please test the #23 pull request, it can solve this problem
We should use dbmirror to produce replication packets in the same format as MusicBrainz. The mbslave project can be then generalized to be able to import them into the Acoustid database.