The same topic linked above contains a post by Emre on how to Export to YAML using Reports > Data Exports feature …
Reports > Data Exports
Here is an alternate method to Export/Import Products and Menus directly from/to the Database Tables, using SSMS…