Import and Export from version 7
How to export content and schema from Umbraco 7 and import into a newer version
The import and export features are available for Umbraco Deploy supporting Umbraco 8 and above. It's not been ported back to Umbraco 7, hence you cannot trigger an export from the backoffice or use the service.
However, you can still use this feature to help migrate from Umbraco 7 to a supported major version. This requires adding additional logic to your Umbraco 7 project to create an export ZIP archive similar to newer versions.
Exporting Umbraco 7 content and schema
You can generate an export archive in the same format as the import/export feature. This is done by adding the Umbraco.Deploy.Contrib.Export
assembly to your Umbraco 7 project (that already has Deploy and Deploy Contrib installed, see below). This archive can be imported into a newer Umbraco version by configuring the legacy import migrators. You can also apply additional migrators to update obsolete data types and property data into newer equivalents.
This is possible via code, by temporarily applying a composer to an Umbraco 7 project to generate the export archive on start-up:
Importing Umbraco 7 content and schema
To import this archive into a newer Umbraco project, you need to install either of these packages:
UmbracoDeploy.Contrib
4.3 for Umbraco 8Umbraco.Deploy.Contrib
for Umbraco 10.2, 12.1, 13.1 or later
Then you need to configure the legacy artifact type resolver and migratory.
Artifact type resolvers allow resolving changes in the type that's stored in the __type
JSON property of the artifact. This is in case it moved to a different assembly or namespace (or got renamed) in a newer version. The legacy migrators handle the following changes:
Moving the pre-values of data types to the configuration property;
Moving the invariant release and expiration dates of content to the (culture variant) schedule property;
Moving the 'allowed at root' and 'allowed child content types' of content/media/member types to the permissions property;
Migrating the Data Type configuration from pre-values to the correct configuration objects and new editor aliases for:
Umbraco.CheckBoxList
(pre-values to value list)Umbraco.ColorPickerAlias
toUmbraco.ColorPicker
(pre-values to value list)Umbraco.ContentPicker2
toUmbraco.ContentPicker
(removes invalid start node ID)Umbraco.ContentPickerAlias
toUmbraco.ContentPicker
(removes invalid start node ID)Umbraco.Date
toUmbraco.DateTime
Umbraco.DropDown
toUmbraco.DropDownListFlexible
(pre-values to value list, single item select)Umbraco.DropDownListFlexible
(pre-values to value list, defaults to multiple item select)Umbraco.DropdownlistMultiplePublishKeys
toUmbraco.DropDownListFlexible
(pre-values to value list, defaults to multiple item select)Umbraco.DropdownlistPublishingKeys
toUmbraco.DropDownListFlexible
(pre-values to value list, defaults to single item select)Umbraco.DropDownMultiple
toUmbraco.DropDownListFlexible
(pre-values to value list, defaults to multiple item select)Umbraco.MediaPicker2
toUmbraco.MediaPicker
(removes invalid start node ID, defaults to single item select)Umbraco.MediaPicker
(removes invalid start node ID)Umbraco.MemberPicker2
toUmbraco.MemberPicker
Umbraco.MultiNodeTreePicker2
toUmbraco.MultiNodeTreePicker
(removes invalid start node ID)Umbraco.MultiNodeTreePicker
(removes invalid start node ID)Umbraco.MultipleMediaPicker
toUmbraco.MediaPicker
(removes invalid start node ID, defaults to multiple item select)Umbraco.NoEdit
toUmbraco.Label
Umbraco.RadioButtonList
(pre-values to value list, change database type from integer to nvarchar)Umbraco.RelatedLinks2
toUmbraco.MultiUrlPicker
Umbraco.RelatedLinks
toUmbraco.MultiUrlPicker
Umbraco.Textbox
toUmbraco.TextBox
Umbraco.TextboxMultiple
toUmbraco.TextArea
Umbraco.TinyMCEv3
toUmbraco.TinyMCE
Migrating pre-value property values for:
Umbraco.CheckBoxList
Umbraco.DropDown.Flexible
Umbraco.RadioButtonList
The following composer adds the required legacy artifact type resolver and migrators. It also adds a custom resolver that marks the specified Document Type alias testElement
as the element type. Element types are a concept added in Umbraco 8 and are required for Document Types that are used in Nested Content.
It is recommended to start by importing only the schema and schema files (by deselecting 'Content' and 'Content files' in the dialog). Then, you can proceed with importing all content and schema together. The order in which the artifacts are imported depends on their dependencies. By importing the schema first, we ensure that the schema is updated before any content is processed.
Obtaining Umbraco Deploy for Umbraco 7
Umbraco Deploy for Umbraco 7 is no longer supported and was only available on Umbraco Cloud. It was not released for use on-premise.
As such if you are looking to migrate from an Umbraco Cloud project running on Umbraco 7, you already have Umbraco Deploy installed.
If you have an Umbraco 7 on-premises website, you can use this guide to migrate from on-premises to Umbraco Cloud. Or to upgrade to a newer Deploy On-premises version. You need to obtain and install Umbraco Deploy for Umbraco 7 into your project, solely to use the export feature.
The export feature can be used without a license.
A license is required for the Umbraco project you are importing into. This can be a license that comes as part of an Umbraco Cloud subscription, or a Deploy On-premises one.
Use this guide to migrate from on-premises to Umbraco Cloud or to upgrade to a newer Deploy On-premises version.
Download the required
dll
files for Umbraco Deploy for Umbraco 7 from the following links:
Umbraco Deploy v2.1.6: Latest Deploy Version 2 release for Umbraco CMS Version 7 (officially for use on Cloud)
Umbraco Deploy Contrib v2.0.0: Latest/only Deploy Contrib Version 2
Umbraco Deploy Export v2.0.0: For exporting all content/schema in Version 7
Install Umbraco Deploy with the Contrib and Export extensions.
Install
Umbraco Deploy
,Deploy.Contrib
, andDeploy.Export
by copying the downloaded.dll
files into your Umbraco 7 site.When copying the files over from
Umbraco Deploy
you should not overwrite the following files (if you already had Umbraco Deploy installed):
Run the project to make sure it runs without any errors
Update the
web.config
file with the required references for Umbraco Deploy:
Export Content.
Export your content, schema, and files to zip.
Last updated