The YAML serialization format
When you use the YAML serialization format, you can use serialize as many item trees that you want. This is different from the the default format that always uses one tree per database (master, core). You specify this in the predicate node in the configuration file. The following rules and limitations apply:
-
Each item can only be in one tree.
-
An item that is not included in a tree is not stored when you serialize.
-
If you select one item for serialization, the whole content tree is serialized as well.
Users and roles are not stored in trees you configure, but you can filter the entities when they are stored in files.
This topic describes:
The YAML serialization file format
When you serialize items, Sitecore creates a separate text file for each item it processes. The files are stored under the root folder that the SerializationFolder setting specifies. When you configure Sitecore to save serialization text files in YAML format, the files look like this:
Configure YAML serialization
The YAML serialization has a number of settings in the configuration file that are only relevant for this format. The most important ones are:
|
Setting |
Description |
|---|---|
|
fieldFormatters |
The settings in this node specify how specific item field types are serialized. It is possible to add formatters. |
|
predicate |
Specifies the name, the database of the tree to serialize, and the path of the parent item of the tree to serialize. |
|
userPredicate, rolePredicate |
Specifies rules that Sitecore uses to filter users and roles when these entities are serialized. |