I have copied workspaces and styles from data_dir folder of one GeoServer to another in order to migrate data. Then restarted GeoServer and workspaces and styles appeared in the new server. But no Stores and Layers.
I have found in similar question that there is a trick needs to be done with datastore.xml file to make Stores and Layers also migrated.
I have deleted all content from this tag and this made a trick. Store and Published layers have appeared.
Is it secure to delete this tag? What does it mean when I delete it?