Thank you, this is very helpful. So on my older Monterey (Intel) Macbook Pro, I have a mix of the iTunes and ~/Music/Music directories and databases. I know that new music is being written to the iTunes portion of this, as I regularly back up my music (the actual songs) when I add more (and I see the xfers).
I copied all of this over to the Macbook Pro M4 (Sequoia), but as I mentioned it's not been working reliably. I wonder if there might be a way to "fix" this on the Monterey side first, which might make the migration easier? I even asked ChatGPT, which wrote some Python code for migrating, tho I don't really trust it :)
I am very comfortable on the CLI (I'm a sysadmin), but it doesn't appear there are any tools to interact with the Music libraries, etc., and the databases may be in a proprietary format, which would make it even more challenging.
There is a "Sync Library" function somewhere, if you subscribe to Apple Music (I do not) -- which doesn't really help me here. Would be great if that were just a general part of the OS, it would help a lot here.
Are you aware of any CLI tools I might use. I am not sure which parts of the structure the Music app is using, on Monterey, under ~/Music/Music and ~/Music/iTunes.
Thanks!