Transfer Messages from iPhone to iPhone

Hi everyone. I was just wondering how to transfer my text messages from my iPhone 3G to my 3GS. I SSH'd into my 3GS and copied over the file but I wasn't able to get any texts. I saw a notification but I didn't see it when I opened the app. Am I supposed to change the permission of the file to 777 or the whole SMS folder?
Can anyone help me please? I'm not sure what I should do.
Are both iPhone having the same firmware version?
Yeah. They both have 3.0. Would it matter if one of them is 3.0 an the other is 3.0.1?

Original thread: https://forums.imore.com/threads/transfer-messages-from-iphone-to-iphone.176349/