|
Home > Archive > Microsoft Content Management Server > September 2004 > Incremental export/import and deleted channels
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Incremental export/import and deleted channels
|
|
| chandy@totalise.co.uk 2004-09-23, 9:18 am |
| Hi all,
There has been much talk of problems with replicating the deletion of
objcts using the SDAPI but it seems no concensus.
I have an incremental deployment that can deploy a new channel fine but
if I delete the channel again it does not replicate that change (and BG
processing has not run between times). The Export report does not
contain the deleted channel (or contain it marked for deletion).
So my question is, does incremental deployment with the SDAPI replicate
channel deletions or not? If yes, under what circumstances? If no,
well, why not and what is the recommended approach?
Thanks,
Chandy
| |
| Stefan [MSFT] 2004-09-23, 9:18 am |
| Hi Chandy,
did you do incremental site deployment with a start channel?
Then this will not work if you deleted the channel from SiteManager as
delete in site manager is actually a move operation to the deleted items
folder.
Without a given start channel this should not happen.
You would have to run the following script to deploy deleted channel
explicitly:
Dim pCmsDeployExport
Dim shell
Dim pExportOptions
Set pCmsDeployExport = CreateObject("CmsDeployServer.CmsDeployExport.1")
pCmsDeployExport.AuthenticateAsCurrentUser
Set pExportOptions = pCmsDeployExport.Options
Dim strPackageFileName
Dim strReportUrl
' Specify where you want the export package to be placed.
strPackageFileName = "d:\export\export.sdo"
' Perform the export.
strReportUrl = pCmsDeployExport.Export(strPackageFileName, 0,
"{E4D1911E-9DD3-11D1-B44E-006097071264}")
' Display the report in the Web browser.
Set shell = WScript.CreateObject("WScript.Shell")
shell.Run "http://localhost" & strReportUrl, 7
WScript.Echo "Export complete."
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
<chandy@totalise.co.uk> wrote in message
news:1095931802.675294.286950@k26g2000oda.googlegroups.com...
> Hi all,
>
> There has been much talk of problems with replicating the deletion of
> objcts using the SDAPI but it seems no concensus.
>
> I have an incremental deployment that can deploy a new channel fine but
> if I delete the channel again it does not replicate that change (and BG
> processing has not run between times). The Export report does not
> contain the deleted channel (or contain it marked for deletion).
>
> So my question is, does incremental deployment with the SDAPI replicate
> channel deletions or not? If yes, under what circumstances? If no,
> well, why not and what is the recommended approach?
>
> Thanks,
>
> Chandy
>
| |
| chandy@totalise.co.uk 2004-09-23, 9:18 am |
| Hi Stefan,
Thanks for that. Just to clarify, in your sample code, is the GUID you
used the GUID of the deleted channel?
Chandy
Stefan [MSFT] wrote:
> Hi Chandy,
>
> did you do incremental site deployment with a start channel?
> Then this will not work if you deleted the channel from SiteManager
as
> delete in site manager is actually a move operation to the deleted
items
> folder.
> Without a given start channel this should not happen.
>
> You would have to run the following script to deploy deleted channel
> explicitly:
>
> Dim pCmsDeployExport
> Dim shell
> Dim pExportOptions
>
> Set pCmsDeployExport =
CreateObject("CmsDeployServer.CmsDeployExport.1")
>
> pCmsDeployExport.AuthenticateAsCurrentUser
>
> Set pExportOptions = pCmsDeployExport.Options
>
> Dim strPackageFileName
> Dim strReportUrl
>
> ' Specify where you want the export package to be placed.
> strPackageFileName = "d:\export\export.sdo"
>
> ' Perform the export.
> strReportUrl = pCmsDeployExport.Export(strPackageFileName, 0,
> "{E4D1911E-9DD3-11D1-B44E-006097071264}")
>
> ' Display the report in the Web browser.
> Set shell = WScript.CreateObject("WScript.Shell")
> shell.Run "http://localhost" & strReportUrl, 7
> WScript.Echo "Export complete."
>
>
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> MCMS FAQ:
>
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
>
http://www.gotdotnet.com/community/...t+S
erver[vbcol=seagreen]
> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> <chandy@totalise.co.uk> wrote in message
> news:1095931802.675294.286950@k26g2000oda.googlegroups.com...
of[vbcol=seagreen]
but[vbcol=seagreen]
(and BG[vbcol=seagreen]
replicate[vbcol=seagreen]
no,[vbcol=seagreen]
| |
|
|
|
|
|