content sync between two web apps
Hello everybody,
My Task: Sync content between two web apps in same farm.
My approach:
1. Use content deployment paths and jobs:
2. Use gary lapointe's stsadm commands.
For approach I am having lot of problems I an getting error like this
Content deployment job 'first job' failed.The exception thrown was 'System.IndexOutOfRangeException' : 'Index was outside the bounds of the array.'
I found that there is no way to resolve this issue I tried searching internet and forms there was no help out there too.
2nd approach is working good but It is taking too long to export and import just one list.
Well in my case I want this task to be run on daily basis like a scheduled task and only the differential amount to data which has changed should be copied over from source web app to dest web app.
Note: The List name and list instances are the same across two web apps. Only the data in lists of two web apps should be in sync.
Any other approach or any help would be appreciated.
October 27th, 2010 10:24am
Any help Appreciated.
Free Windows Admin Tool Kit Click here and download it now
October 27th, 2010 4:17pm
Hi,
About content deployment paths and jobs, please refer to:
http://technet.microsoft.com/en-us/library/cc262075.aspx
http://blogs.msdn.com/b/jackiebo/archive/2007/02/26/content-deployment-step-by-step-tutorial.aspx
In addition, maybe you can try to create your own timer job do it regularly.
And here are some sources:
http://msdn.microsoft.com/en-us/library/ms496233.aspx
http://msdn.microsoft.com/en-us/library/cc406686(office.12).aspx
http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx
http://www.alexbruett.net/?p=69
Hope it is helpful!Seven
November 4th, 2010 2:49am
I did solve this by using gary lapointe stsadm commands.
stsadm -o gl-exportlist -url "http://nameoftheserver/Lists/samplelist/AllItems.aspx" -filename "c:\Backup\samplelist" -versions 2 -nofilecompression -overwrite -excludedependencies -includedescendants None
stsadm -o gl-importlist -url "http:/destinationservername" -filename ""c:\Backup\samplelist" -updateversions 1 -nofilecompression -sourceurl "http://nameoftheserver/Lists/samplelist/AllItems.aspx" -retainobjectidentity
This solved most of the problem.
Free Windows Admin Tool Kit Click here and download it now
January 10th, 2011 3:11pm