I must admit that my answer was most directed to the situation of
@macbackup11233.
Your situation is more complex in that you have two separate collections of messages. If I have got that right:
a) Messages on your Mac which are NOT synced with iCloud;
b) Messages on your iPhone which are synced with iCloud.
And that before attempting to join them, you want (very sensibly) to have a way of recovering from TM in case it all goes wrong. The "going wrong" is, I fear, fairly likely.
I am
very nervous of encouraging you to rely on TM as a way of recovering
just messages (rather than a whole of Mac restore). I can't find any recent descriptions of a) exactly what needs to be restored and b) then linked up with iCloud.
As well as
~/Library/Messages
, there are a number of of folders inside
~/Library/Containers
which relate to Messages. Exactly which need to be restored, I don't know!
I realise, I am not being very helpful. Rather I am just explaining my lack of certainty!!
If you do press ahead with combining your Mac and iPhone/iCloud messages, I strongly suggest exporting all your message conversations to another format (most obviously PDF). Just in case.
Really I would rather you waited for better/clearer advice. Sorry.