Have a look here:Backing/Restoring up openHAB2.x
This should grab everything if you use it. As far as I know all files are portable between the operating systems.
I configure my system only by files so I generally only need my items things sitemap…
As far as where to put the files, all the pertinent folders are exposed via samba. They are named conf, user data, etc.