Below Powershell script can be used to back up and restore the terms from one sharepoint farm to another in sharepoint 2013.
For BackUp #Add-PSSnapin Microsoft.SharePoint.PowerShell
$mmsAppId= "Pass GUID- refer the first screen shot below to get the guid"
$mmsproxy = Get-SPServiceApplicationProxy -Identity "GUID- refer the second screen shot for getting the guid "
Export-SPMetadataWebServicePartitionData -Identity $mmsAppId -ServiceProxy $mmsproxy -Path "C:\path\FileName.cab"
For Restore
move the FileName.cab file to the new server.
Use the below PowerShell commands.
$mmsAppId= "GUID- refer the first screen shot to get the guid"
$mmsproxy = Get-SPServiceApplicationProxy -Identity "GUID- refer the second screen shot for getting the guid "
Import-SPMetadataWebServicePartitionData -Identity $mmsAppId -ServiceProxy $mmsproxy -Path "C:\.\FileName.cab" -OverwriteExisting;
For BackUp #Add-PSSnapin Microsoft.SharePoint.PowerShell
$mmsAppId= "Pass GUID- refer the first screen shot below to get the guid"
$mmsproxy = Get-SPServiceApplicationProxy -Identity "GUID- refer the second screen shot for getting the guid "
Export-SPMetadataWebServicePartitionData -Identity $mmsAppId -ServiceProxy $mmsproxy -Path "C:\path\FileName.cab"
For Restore
move the FileName.cab file to the new server.
Use the below PowerShell commands.
$mmsAppId= "GUID- refer the first screen shot to get the guid"
$mmsproxy = Get-SPServiceApplicationProxy -Identity "GUID- refer the second screen shot for getting the guid "
Import-SPMetadataWebServicePartitionData -Identity $mmsAppId -ServiceProxy $mmsproxy -Path "C:\.\FileName.cab" -OverwriteExisting;
Screen Shot1:-Please get the guid from the circled section
of the below sccreen
Screen Shot2:-You can get the guid from highlighted
section of the the pop up from below screen shot
No comments:
Post a Comment