Import on start-up
How to import content and schema on startup and implement your own `IArtifactImportOnStartupProvider`
Last updated
Was this helpful?
How to import content and schema on startup and implement your own `IArtifactImportOnStartupProvider`
Last updated
Was this helpful?
Deploy can import content and/or schema previously exported from another Umbraco installation on start-up. This allows for a quick setup of a baseline/starter kit or serves as a workaround for large ZIP archives that cannot be uploaded via the backoffice.
The default configuration will look for the ZIP archive umbraco\Deploy\import-on-startup.zip
on start-up and if it exists, run an import and delete the file on successful completion. If you want to customize the default behavior, do so via .
This feature is extensible via a provider-based model by implementing IArtifactImportOnStartupProvider
and registering it using builder.DeployArtifactImportOnStartupProviders()
. The default Umbraco.Deploy.Infrastructure.SettingsArtifactImportOnStartupProvider
implementation uses the above settings and inherits from Umbraco.Deploy.Infrastructure.ArtifactImportOnStartupProviderZipArchiveBase
(which can be used for your own custom implementation).
IArtifactImportOnStartupProvider
An example of an import on a start-up provider that imports from a physical directory (instead of ZIP archive) is shown below: