Lightweight Musicbrainz database mirroring
- Rust 92.9%
- Nix 7.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| musicbrainz@90886774d8 | ||
| src | ||
| .gitignore | ||
| .gitmodules | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| readme.md | ||
syncbrainz
Lightweight Musicbrainz database mirroring tool.
Usage
To set up a fully functional Musicbrainz database, there are two steps;
- initialise the database (
syncbrainz init), - import a full data export (
syncbrainz import)
after which you'll have a database populated with fairly recent data — half a week old, at most.
Hourly replication
To get data as recent as the hour, there are two additional steps;
- sign up for a Metabrainz live data feed (and donate if possible!),
- run the sync command (
syncbrainz replicate)
this downloads any missing replication packets, verifies their integrity and authenticity, then applies them to the database. When the program exits, you'll have a fully up to date Musicbrainz database.
Important
Running the replication step as an hourly cron-job is a great idea, but it's very important that only one syncbrainz instance is running at a time. Configure your scheduling system such that it does not stop already running processes.