Hi RK.
Here is a Microsoft document on this topic: Move Public Folder Content from One Public Folder Database to Another Public Folder Database
You may run the following command to move the public folders to the new server:
.\MoveAllReplicas.ps1 -Server Server01 -NewServer Server02
By default the MoveAllReplicas.ps1 script is located under the path: C:\Program Files\Microsoft\Exchange Server\V14\Scripts.
To run this command, the account you are using should have the following permissions: Organization Management and Public Folder Management
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.