Compare items between two instancesComparing a Sitecore instance with a vanilla oneGetting locked items SPEHow to get list view of items plus their linked items in powershell-extensions?Compare item versions with Sitecore PowerShell ExtensionBulk create Media ItemsArchive Sitecore items using Sitecore PowerShell ExtentionCompare two branches of a Sitecore content treePowershell get all items that use a templatePowerShell script to compare latest version number of master and web DB in sitecoreAdding Items to Multilist Field using powershell
Why CMYK & PNG is not possible?
70's/80's story about a high ranking prisoner of war on a prison planet
Can you be promoted and then fired for-cause? (Performance)
Closest thing to Infinity Gauntlet in DnD5e
Is any device installed on airplane to measure wind speed relative to the ground, and its direction?
Should a grammatical article be a part of a web link anchor
When can a graph be oriented to form a Hasse diagram of a finite poset?
Parliament Cannot Bind Future Parliaments
An employee has low self-confidence, and is performing poorly. How can I help?
What does IKEA-like mean?
Modern warfare theory in a medieval setting
one-liner vs script
Why is it so hard to land on The Moon?
How to remind myself to lock my doors
SSH From a shared workplace computer
Is there a reason behind the 'Ending' joke?
Conveying the idea of " judge a book by its cover" by " juger un livre par sa couverture"
Why is the intercept changing in a logistic regression when all predictors are standardized?
Translation Golf XLVIII — We're sorry to see you go
Suspicious crontab entry
Is the Olympic running race fair?
Why can I ping 10.0.0.0/8 addresses from a 192.168.1.0/24 subnet?
What is the meaning of "log" in "hours logged"?
Can I use I2C over 2m cables?
Compare items between two instances
Comparing a Sitecore instance with a vanilla oneGetting locked items SPEHow to get list view of items plus their linked items in powershell-extensions?Compare item versions with Sitecore PowerShell ExtensionBulk create Media ItemsArchive Sitecore items using Sitecore PowerShell ExtentionCompare two branches of a Sitecore content treePowershell get all items that use a templatePowerShell script to compare latest version number of master and web DB in sitecoreAdding Items to Multilist Field using powershell
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
We upgraded Sitecore 8.2 project to 9.1. Upgrade took around 1 month to finish and during this period, authors created/updated some items in old instance and they didn't make a note of those items.
So, now I want to compare both instances to find out items to migrate content from 8.2 to 9.1
Is there any way to find out what items got updated/created in old instance? Can this be done using Sitecore Powershell Remoting?
powershell-extensions content-migration
New contributor
add a comment
|
We upgraded Sitecore 8.2 project to 9.1. Upgrade took around 1 month to finish and during this period, authors created/updated some items in old instance and they didn't make a note of those items.
So, now I want to compare both instances to find out items to migrate content from 8.2 to 9.1
Is there any way to find out what items got updated/created in old instance? Can this be done using Sitecore Powershell Remoting?
powershell-extensions content-migration
New contributor
add a comment
|
We upgraded Sitecore 8.2 project to 9.1. Upgrade took around 1 month to finish and during this period, authors created/updated some items in old instance and they didn't make a note of those items.
So, now I want to compare both instances to find out items to migrate content from 8.2 to 9.1
Is there any way to find out what items got updated/created in old instance? Can this be done using Sitecore Powershell Remoting?
powershell-extensions content-migration
New contributor
We upgraded Sitecore 8.2 project to 9.1. Upgrade took around 1 month to finish and during this period, authors created/updated some items in old instance and they didn't make a note of those items.
So, now I want to compare both instances to find out items to migrate content from 8.2 to 9.1
Is there any way to find out what items got updated/created in old instance? Can this be done using Sitecore Powershell Remoting?
powershell-extensions content-migration
powershell-extensions content-migration
New contributor
New contributor
New contributor
asked 9 hours ago
MathewMathew
487 bronze badges
487 bronze badges
New contributor
New contributor
add a comment
|
add a comment
|
2 Answers
2
active
oldest
votes
There are a few options included with SPE out-of-the-box which could aid in accomplishing this task. The detail below is produced with SPE 6.0 but much of it was available in previous versions.
Reports
There is a Content Report called Items last updated which can be used to find any items in the tree (typically content) that has changed after a specified date.
Comparing Instances
The following script provides a basic example at using SPE to compare the content between two instances beginning with the specified root item.
Clear-Host
$watch = [System.Diagnostics.Stopwatch]::StartNew()
$Username = "admin"
$Password = "b"
$Source = "https://abc.dev.local"
$Destination = "https://123.dev.local"
$localSession = New-ScriptSession -user $Username -pass $Password -conn $Source
$remoteSession = New-ScriptSession -user $Username -pass $Password -conn $Destination
$rootId = "37D08F47-7113-4AD6-A5EB-0C0B04EF6D05"
$sourceItemIds = Invoke-RemoteScript -Session $localSession -ScriptBlock
$rootItem = Get-Item -Path "master:" -ID $using:rootId
$itemIds = (@($rootItem) + @($rootItem.Axes.GetDescendants()) -Raw
$destinationItemIds = Invoke-RemoteScript -Session $remoteSession -ScriptBlock Select-Object -ExpandProperty ID) -join " -Raw
$referenceIds = $sourceItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
$differenceIds = $destinationItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
$queueIds = Compare-Object -ReferenceObject $referenceIds -DifferenceObject $differenceIds |
Where-Object $_.SideIndicator -eq "<=" | Select-Object -ExpandProperty InputObject
$watch.Stop()
$totalSeconds = $watch.ElapsedMilliseconds / 1000
Write-Host "$($totalSeconds) seconds" -ForegroundColor Yellow
add a comment
|
Welcome to Sitecore stackexchange.
RAZL RAZL - can be used to compare the items between two different Sitecore Instances. Please note this is a "paid" software.
Another option is to use Sitecore Courier - This open source module can compare sitecore serialized files in two folders and create a diff (update) package containing the differences.
There is also more information on this other post which you can refer - Comparing a Sitecore instance with a vanilla one
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "664"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Mathew is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f22371%2fcompare-items-between-two-instances%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are a few options included with SPE out-of-the-box which could aid in accomplishing this task. The detail below is produced with SPE 6.0 but much of it was available in previous versions.
Reports
There is a Content Report called Items last updated which can be used to find any items in the tree (typically content) that has changed after a specified date.
Comparing Instances
The following script provides a basic example at using SPE to compare the content between two instances beginning with the specified root item.
Clear-Host
$watch = [System.Diagnostics.Stopwatch]::StartNew()
$Username = "admin"
$Password = "b"
$Source = "https://abc.dev.local"
$Destination = "https://123.dev.local"
$localSession = New-ScriptSession -user $Username -pass $Password -conn $Source
$remoteSession = New-ScriptSession -user $Username -pass $Password -conn $Destination
$rootId = "37D08F47-7113-4AD6-A5EB-0C0B04EF6D05"
$sourceItemIds = Invoke-RemoteScript -Session $localSession -ScriptBlock
$rootItem = Get-Item -Path "master:" -ID $using:rootId
$itemIds = (@($rootItem) + @($rootItem.Axes.GetDescendants()) -Raw
$destinationItemIds = Invoke-RemoteScript -Session $remoteSession -ScriptBlock Select-Object -ExpandProperty ID) -join " -Raw
$referenceIds = $sourceItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
$differenceIds = $destinationItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
$queueIds = Compare-Object -ReferenceObject $referenceIds -DifferenceObject $differenceIds |
Where-Object $_.SideIndicator -eq "<=" | Select-Object -ExpandProperty InputObject
$watch.Stop()
$totalSeconds = $watch.ElapsedMilliseconds / 1000
Write-Host "$($totalSeconds) seconds" -ForegroundColor Yellow
add a comment
|
There are a few options included with SPE out-of-the-box which could aid in accomplishing this task. The detail below is produced with SPE 6.0 but much of it was available in previous versions.
Reports
There is a Content Report called Items last updated which can be used to find any items in the tree (typically content) that has changed after a specified date.
Comparing Instances
The following script provides a basic example at using SPE to compare the content between two instances beginning with the specified root item.
Clear-Host
$watch = [System.Diagnostics.Stopwatch]::StartNew()
$Username = "admin"
$Password = "b"
$Source = "https://abc.dev.local"
$Destination = "https://123.dev.local"
$localSession = New-ScriptSession -user $Username -pass $Password -conn $Source
$remoteSession = New-ScriptSession -user $Username -pass $Password -conn $Destination
$rootId = "37D08F47-7113-4AD6-A5EB-0C0B04EF6D05"
$sourceItemIds = Invoke-RemoteScript -Session $localSession -ScriptBlock
$rootItem = Get-Item -Path "master:" -ID $using:rootId
$itemIds = (@($rootItem) + @($rootItem.Axes.GetDescendants()) -Raw
$destinationItemIds = Invoke-RemoteScript -Session $remoteSession -ScriptBlock Select-Object -ExpandProperty ID) -join " -Raw
$referenceIds = $sourceItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
$differenceIds = $destinationItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
$queueIds = Compare-Object -ReferenceObject $referenceIds -DifferenceObject $differenceIds |
Where-Object $_.SideIndicator -eq "<=" | Select-Object -ExpandProperty InputObject
$watch.Stop()
$totalSeconds = $watch.ElapsedMilliseconds / 1000
Write-Host "$($totalSeconds) seconds" -ForegroundColor Yellow
add a comment
|
There are a few options included with SPE out-of-the-box which could aid in accomplishing this task. The detail below is produced with SPE 6.0 but much of it was available in previous versions.
Reports
There is a Content Report called Items last updated which can be used to find any items in the tree (typically content) that has changed after a specified date.
Comparing Instances
The following script provides a basic example at using SPE to compare the content between two instances beginning with the specified root item.
Clear-Host
$watch = [System.Diagnostics.Stopwatch]::StartNew()
$Username = "admin"
$Password = "b"
$Source = "https://abc.dev.local"
$Destination = "https://123.dev.local"
$localSession = New-ScriptSession -user $Username -pass $Password -conn $Source
$remoteSession = New-ScriptSession -user $Username -pass $Password -conn $Destination
$rootId = "37D08F47-7113-4AD6-A5EB-0C0B04EF6D05"
$sourceItemIds = Invoke-RemoteScript -Session $localSession -ScriptBlock
$rootItem = Get-Item -Path "master:" -ID $using:rootId
$itemIds = (@($rootItem) + @($rootItem.Axes.GetDescendants()) -Raw
$destinationItemIds = Invoke-RemoteScript -Session $remoteSession -ScriptBlock Select-Object -ExpandProperty ID) -join " -Raw
$referenceIds = $sourceItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
$differenceIds = $destinationItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
$queueIds = Compare-Object -ReferenceObject $referenceIds -DifferenceObject $differenceIds |
Where-Object $_.SideIndicator -eq "<=" | Select-Object -ExpandProperty InputObject
$watch.Stop()
$totalSeconds = $watch.ElapsedMilliseconds / 1000
Write-Host "$($totalSeconds) seconds" -ForegroundColor Yellow
There are a few options included with SPE out-of-the-box which could aid in accomplishing this task. The detail below is produced with SPE 6.0 but much of it was available in previous versions.
Reports
There is a Content Report called Items last updated which can be used to find any items in the tree (typically content) that has changed after a specified date.
Comparing Instances
The following script provides a basic example at using SPE to compare the content between two instances beginning with the specified root item.
Clear-Host
$watch = [System.Diagnostics.Stopwatch]::StartNew()
$Username = "admin"
$Password = "b"
$Source = "https://abc.dev.local"
$Destination = "https://123.dev.local"
$localSession = New-ScriptSession -user $Username -pass $Password -conn $Source
$remoteSession = New-ScriptSession -user $Username -pass $Password -conn $Destination
$rootId = "37D08F47-7113-4AD6-A5EB-0C0B04EF6D05"
$sourceItemIds = Invoke-RemoteScript -Session $localSession -ScriptBlock
$rootItem = Get-Item -Path "master:" -ID $using:rootId
$itemIds = (@($rootItem) + @($rootItem.Axes.GetDescendants()) -Raw
$destinationItemIds = Invoke-RemoteScript -Session $remoteSession -ScriptBlock Select-Object -ExpandProperty ID) -join " -Raw
$referenceIds = $sourceItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
$differenceIds = $destinationItemIds.Split("|", [System.StringSplitOptions]::RemoveEmptyEntries)
$queueIds = Compare-Object -ReferenceObject $referenceIds -DifferenceObject $differenceIds |
Where-Object $_.SideIndicator -eq "<=" | Select-Object -ExpandProperty InputObject
$watch.Stop()
$totalSeconds = $watch.ElapsedMilliseconds / 1000
Write-Host "$($totalSeconds) seconds" -ForegroundColor Yellow
answered 9 hours ago
Michael WestMichael West
11.1k2 gold badges20 silver badges64 bronze badges
11.1k2 gold badges20 silver badges64 bronze badges
add a comment
|
add a comment
|
Welcome to Sitecore stackexchange.
RAZL RAZL - can be used to compare the items between two different Sitecore Instances. Please note this is a "paid" software.
Another option is to use Sitecore Courier - This open source module can compare sitecore serialized files in two folders and create a diff (update) package containing the differences.
There is also more information on this other post which you can refer - Comparing a Sitecore instance with a vanilla one
add a comment
|
Welcome to Sitecore stackexchange.
RAZL RAZL - can be used to compare the items between two different Sitecore Instances. Please note this is a "paid" software.
Another option is to use Sitecore Courier - This open source module can compare sitecore serialized files in two folders and create a diff (update) package containing the differences.
There is also more information on this other post which you can refer - Comparing a Sitecore instance with a vanilla one
add a comment
|
Welcome to Sitecore stackexchange.
RAZL RAZL - can be used to compare the items between two different Sitecore Instances. Please note this is a "paid" software.
Another option is to use Sitecore Courier - This open source module can compare sitecore serialized files in two folders and create a diff (update) package containing the differences.
There is also more information on this other post which you can refer - Comparing a Sitecore instance with a vanilla one
Welcome to Sitecore stackexchange.
RAZL RAZL - can be used to compare the items between two different Sitecore Instances. Please note this is a "paid" software.
Another option is to use Sitecore Courier - This open source module can compare sitecore serialized files in two folders and create a diff (update) package containing the differences.
There is also more information on this other post which you can refer - Comparing a Sitecore instance with a vanilla one
answered 9 hours ago
Abhay DharAbhay Dhar
4653 silver badges18 bronze badges
4653 silver badges18 bronze badges
add a comment
|
add a comment
|
Mathew is a new contributor. Be nice, and check out our Code of Conduct.
Mathew is a new contributor. Be nice, and check out our Code of Conduct.
Mathew is a new contributor. Be nice, and check out our Code of Conduct.
Mathew is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Sitecore Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f22371%2fcompare-items-between-two-instances%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown