Hi @dirkdigs ,
It looks like the master public folder information is still available.
Run Get-Mailbox –PublicFolder | FL Name,ExchangeGuid to get the PF which holders the master.
If this information is not retrieved, then you need to clean-up using ADSIEdit.msc
Open adsi.edit and go to Configuration – Services – Microsoft Exchange – “Your Exchange Org Name”, clear “MsExchDefaultPublicFolderMailbox” and create PF mailbox again, see if it holds primary hierarchy.
https://mspcontrol.org/wiki/how-to-re-create-public-folder-master-hierarchy-in-exchange-2013-2016/
To restore the data, you can follow the below steps,
1.Restore the database to a Recovery database from the backup.
2.Merge the public folder data to a new folder in the public folder mailbox.