riccardo
i would not recommend doing this, but you can just simply copy all files from the share-folder from 5.26 to 5.27.
the usual way is to just upgrade from 5.26 to 5.27 and not doing a fresh install of 5.27 and then copy over files from the old version to the new one (but you can try to do it, maybe it will work without issues)