Here are the steps to clone Managed Metadata Service (MMS) in the same SP 2013 Farm
- Find out the database name and Application Pool of the existing MMS in the Farm using PS script
Add-PSSnapin Microsoft.SharePoint.Powershell
$md=Get-SPMetadataServiceApplication -Identity "Managed Metadata Service"
$md.Database.DisplayName
$md.ApplicationPool
- Take a full backup of the MMS database and restore using SQL Server Management Studio
While restoring, make sure to type in a different database name at Destination=>Database => Dropdown list and also, under Files, change the name of the *.mdf and *_log.ldf file to create new files
Here is a YouTube video to accomplish this.
- Create a NEW MMS with the PS script shown below. Make sure MMS name is different from the existing one and Database is pointing to the newly restored database.
Add-PSSnapin Microsoft.SharePoint.Powershell
$mms = New-SPMetadataServiceApplication -Name "Managed Metadata Service New" -ApplicationPool "SharePoint Web Services Default" -DatabaseName "ManagedMetadataServiceNew"
New-SPMetadataServiceApplicationProxy -Name 'Managed Metadata Services New Proxy' -ServiceApplication $mms -DefaultProxyGroup
- Verify the newly created MMS using PS or in CA
$md=Get-SPMetadataServiceApplication -Identity "Managed Metadata Service New"
$md.Database.DisplayName
$md.ApplicationPool