We have a UAT and LIVE Sitecore environment that hosts multiple websites and we use unicorn to sync data. The solutions uses Helix and for each project we have transforms for unicorn serialization config.
For our production CM environment, we have a synchronization transform that excludes content so during our Azure DevOps deployment to production, the unicorn sync step will not delete any live content but will add new data, components and settings.
The config below is our production CM serialization transform which excludes content
<?xml version="1.0" encoding="utf-8" ?> <!-- For more information on using transformations see the web.config examples at http://go.microsoft.com/fwlink/?LinkId=214134. --> <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <sitecore> <unicorn> <configurations> <configuration name="Project.Website" description="Website" dependencies="Foundation.*,Feature.*" extends="Helix.Project"> <predicate> <include name="Project.Website.Content" database="master" path="/sitecore/content/Website" xdt:Transform="Replace" xdt:Locator="Match(name)"> <exclude children="true"> <except name="Site Settings/Datasources"></except> </exclude> </include> <include name="Project.Website.Media" xdt:Transform="Remove" xdt:Locator="Match(name)" /> <include name="Project.Website.MoreMedia" xdt:Transform="Remove" xdt:Locator="Match(name)" /> </predicate> </configuration> </configurations> </unicorn> </sitecore> </configuration>
This is fine but over time, the live environment becomes out of sync with UAT and local development. What is the best approach to copy just new content including blobs from our production Master database to another environment?