Sharepoint Metadata Backup and restore procedure

In this post we will discuss about SharePoint Backup and Restore of MetaData.

BACK UP and RESTORE OF METADATA

1) Back Up:

1. Run this PowerShell Command: Get-SPServiceApplication

2. Highlight and copy the ID of Managed Metadata Application

3. Once it’s copied to the clipboard, assign it to a variable:

Command: $mmsApp = “Selected MMS ServiceApplication Id here”

EXample: $mmsApp = “6e2c2ddc-1ef8-4c1c-a3cf-3124e6fb6063”

4. Go to Central Administration/Application Management/Service Applications/Manage Service Application. Look at the type of your appliction. If you have not changed it, it will be ‘Managed Metadata Service Connection’.

5. Using that type, in PowerShell, use this command to get the Application Proxy via the Type Name and set it to a variable:

Run this PowerShell Command: Get-SPServiceApplicationProxy

Highlight and copy the ID of Managed Metadata Application




Read some SharePoint 2013 tutorials below:

Once it’s copied to the clipboard, assign it to a variable:

Command: $ mmsproxy = “Selected MMS ServiceApplicationProxy Id here”

EXample: $mmsproxy = “52610974-acc7-4cba-88a9-b5f177585586”

6. Type in the command ‘$mmsproxy’ to see if you return a Displayname, Typename and ID. If not, check the spellings of the command and the Proxy name

Run the command below and provide the physical path of the backupfile:

Command:
Export-SPMetadataWebServicePartitionData -Identity $mmsApp -ServiceProxy $mmsproxy -Path C:\Arghya\Backup\OldPortalMetadata.bak;

2) Restore:

To restore MMS backup to a different location or in a different Central Administration,

the following steps to be executed:



i) Go to the another specified Central Administration > Application Management >Manage Service Applications > Select metadata service from “New Tab” and follow the popup box to provide values and create a blank metadata service.

ii) Run this PowerShell Command: Get-SPServiceApplication

Get the ID of the metadata from the list, that has been created.

Assign this to a variable like $mms2 = “place the service application ID here”

iii) Using that type, in PowerShell, use this command to get the Application Proxy via the Type Name and set it to a variable:

Command: Get-SPServiceApplicationProxy

Get the Proxy ID of the metadata from the list, that has been created.

Assign this to a variable like $mmsProxy2 = “Place the service application proxy ID here”

Run the command below and provide the physical path of the backupfile:

Command:
Import-SPMetadataWebServicePartitionData -Identity $mms2 -ServiceProxy $mmsProxy2 -path C:\Arghya\Backup\NewPortalMetadata.bak -OverwriteExisting;

YOUR MMS WILL BE RESTORED.

NOTE: PRESS ENTER TO EXECUTE EACH AND EVERY COMMAND

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

Arghya Das

>