Created
February 19, 2014 09:55
-
-
Save DominicCronin/9089062 to your computer and use it in GitHub Desktop.
execute export and import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$impexp = get-ImportExportServiceClient | |
$contentFolderSelection = new-object SubTreeSelection "tcm:3-1005-2",$false | |
$exportInstruction = new-object ExportInstruction | |
$exportInstruction.BluePrintMode = [BluePrintMode]::ExportSharedItemsFromOwningPublication | |
($processId = $impexp.StartExport( @($contentFolderSelection),$exportInstruction)) | |
WaitForImportExportFinish $impexp $processId | |
DownloadPackageToFile $processId "package.zip" | |
$uploadId = UploadPackageFromFile "package.zip" | |
$impexp = get-ImportExportServiceClient | |
$processId = $impexp.StartImport($uploadId, (new-object ImportInstruction)) | |
$impexp.GetProcessState($processId) | |
WaitForImportExportFinish $impexp $processId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment