How to backup and restore PMS settings/metadata?

You don’t place the data then install. You install the package then, with PMS stopped, restore the backup over the top of the “empty” data which the installer created.