There is an option in health.app to export the data via an email. Further, there is an app in the app store that can import the data back into health. app.
From the health app click on health data then click on all then click the button in the top right that looks like a box and an arrow.
Search the app store for health importer. That will let you import data back into the health app.