My presentation from the Manchester Sitecore Technical User Group on the 6th of December discussing how to Automate Content syncs using Content Migrator and demoing some customisations we've implemented to add additional functionality.
2. What is it?
• Community Created Tool to Sync
Content to Different Environments
• Installed as a Sitecore Module
• Part of Sidekick (an Angular.js
container for Sitecore)
• Configurable Options
• Supports Multiple Environments
2
5. Why use it?
• Frees up your time to do other
things
• Faster than Manual Sync
• It’s Quick (102 x faster than a Sitecore
Package Install!)
• Consistent Repeatable Syncs
5
6. What can it do?
Sync Pages
Sync
Components &
Images
Progress
Updates
& Previews
Automated
Syncs
6
7. Installing
Content Migrato
1. Install Sitecore Module or
NuGet Package
2. Configure Secret, Roots,
Server List
3. Deploy to Staging &
Production
4. Start Syncing Content
https://www.nuget.org/packages/SitecoreSidekickCore
7
8. How to use it
• Choose where to pull content
from
• Select Options
• Preview
• Execute Operation
8
9. Automated
Syncs
1. Set the remote url to pull
content from (usually Prod)
2. Set one or more root Ids to
sync
3. Set the options
9
10. Tips & Tricks
• Make sure you remember to
deploy to other environments
before trying to use it
• Make sure you set your Secret to
the same on all environments and
to at least 32 characters.
• Existing Item Ids are maintained
• Syncs Have to run on hourly
schedule
• History is not maintained over
App pool recycles
1 0
11. Improvements
We wanted to:
• Sync on a specific day of the
week from Production to Dev
& Staging
• Know if it ran successfully
• Be able to configure the sync
through a UI (no deployment
needed)
• Auto-publish changes
1 1
12. How did we do this?
• We used Sitecron to create a custom task which called the Content Migrator
Auto-sync on a schedule
• We created a UI in Sitecore using Custom Templates to allow Content Editors to
configure the sync config from a user interface instead of using a config.
1 2
13. Sitecron
• Runs Cron based Scheduled
Jobs in Sitecore
• Based on Quartz.NET
• More info here:
https://marketplace.sitecore.net/Modules/S/Sitecron
https://www.akshaysura.com/2015/06/23/sitecron-
sitecore-module-for-your-everyday-scheduling-needs/
1 3
14. A UI for the Sync
• Support Selection of Items to
Sync from Mutilists
• Integrates with Sitecron
• Additional Logging
• Auto Publish Pages
• Optionally Sends a Slack
Notification too
1 4
15. New In
Content
Migrator 1.4.2• Support for Sitecore
PowerShell based Automated
Syncs
• Works on Sitecore 9
• Bug fixes
1 5
Hi everyone, good to see a few friendly faces in the audience, some of you may already now me
My Names Adam Seabridge, I’m a freelance Sitecore developer.
I’ve been working with Sitecore for over 4 years. I’m currently working at Code Computer love
I wanted to share with you my thoughts on Automating Content syncs using Content Migrator
Has anyone used Content Migrator before?
Built by Jeff Darchuk
Not by Kam Figgy (the creator of Unicorn)
Although they did work together at Connective DX
Content Migrator also uses the Rainbow Serialisation from Unicorn
So why would you want to use Content Migrator?
I’m sure every here has had to try and debug an issue on dev or staging Site and found they a missing some content to re-create the issue.
Fine you think, ill just create a Sitecore package, then half an hour later your still creating packages to pull down missing components and images from Sitecore.
This episode of Rick and Morty is just like that. Rick say’s to Morty ‘Come on, lets go on a quick 20 minute adventure, in and out’ and 6hrs later they are still stuck in a parallel universe fighting monsters.