Incremental export/import and deleted channels
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Incremental export/import and deleted channels




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Incremental export/import and deleted channels  
chandy@totalise.co.uk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:18 PM

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






[ Post a follow-up to this message ]



    Re: Incremental export/import and deleted channels  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:18 PM

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...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
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
>







[ Post a follow-up to this message ]



    Re: Incremental export/import and deleted channels  
chandy@totalise.co.uk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:18 PM

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:
>

> MCMS Blog: [url]http://blogs.msdn.com/stefan_gossner/category/4983.aspx" target="_blank">http://download.microsoft.com/downl...egory/4983.aspx
> MCMS Sample Code:
>
http://www.gotdotnet.com/community/...
+Server[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] 






[ Post a follow-up to this message ]



    Re: Incremental export/import and deleted channels  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:18 PM

Hi Chandy,

no this is the GUID of the deleted items folder.
You don't have to change this GUID as it is identical in all system..

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


<chandy@totalise.co.uk> wrote in message
news:1095942093.928882.174430@k26g2000oda.googlegroups.com...
> 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: 
> as 
> items 
> CreateObject("CmsDeployServer.CmsDeployExport.1") 
> rights. 
>
 
>
[url]http://www.gotdotnet.com/community/usersamples/Default.aspx?ProductDropDownList=Content+Management
+Server" target="_blank">http://download.microsoft.com/downl...
+Server 
> of 
> but 
> (and BG 
> replicate 
> no, 
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:53 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register