Andrew Connell [MVP SharePoint]
1741 Posts |  46 Articles |  5310 Comments
.NET  |  MCMS  |  SharePoint  |  Office System
Andrew Connell's RSS Feed    
AC's Blog Quick Links
SharePoint Quick Links
Article Categories
Archives
May, 2012 (3)
April, 2012 (4)
March, 2012 (4)
February, 2012 (4)
January, 2012 (12)
December, 2011 (6)
November, 2011 (3)
October, 2011 (17)
September, 2011 (8)
August, 2011 (6)
July, 2011 (7)
June, 2011 (13)
May, 2011 (9)
April, 2011 (15)
March, 2011 (1)
February, 2011 (6)
January, 2011 (5)
December, 2010 (11)
November, 2010 (6)
October, 2010 (12)
September, 2010 (5)
August, 2010 (4)
July, 2010 (5)
June, 2010 (6)
May, 2010 (11)
April, 2010 (11)
March, 2010 (9)
February, 2010 (9)
January, 2010 (3)
December, 2009 (10)
November, 2009 (15)
October, 2009 (15)
September, 2009 (7)
August, 2009 (4)
July, 2009 (10)
June, 2009 (8)
May, 2009 (2)
April, 2009 (9)
March, 2009 (6)
February, 2009 (16)
January, 2009 (6)
December, 2008 (12)
November, 2008 (12)
October, 2008 (27)
September, 2008 (13)
August, 2008 (14)
July, 2008 (14)
June, 2008 (12)
May, 2008 (23)
April, 2008 (12)
March, 2008 (15)
February, 2008 (13)
January, 2008 (12)
December, 2007 (10)
November, 2007 (8)
October, 2007 (15)
September, 2007 (20)
August, 2007 (21)
July, 2007 (16)
June, 2007 (8)
May, 2007 (25)
April, 2007 (16)
March, 2007 (18)
February, 2007 (18)
January, 2007 (12)
December, 2006 (16)
November, 2006 (13)
October, 2006 (18)
September, 2006 (22)
August, 2006 (27)
July, 2006 (23)
June, 2006 (23)
May, 2006 (23)
April, 2006 (9)
March, 2006 (17)
February, 2006 (15)
January, 2006 (23)
December, 2005 (31)
November, 2005 (32)
October, 2005 (38)
September, 2005 (53)
August, 2005 (30)
July, 2005 (63)
June, 2005 (30)
May, 2005 (59)
April, 2005 (29)
March, 2005 (74)
February, 2005 (27)
January, 2005 (22)
December, 2004 (32)
November, 2004 (42)
October, 2004 (39)
September, 2004 (20)
August, 2004 (14)
July, 2004 (27)
June, 2004 (40)
May, 2004 (5)
April, 2004 (6)
March, 2004 (16)
February, 2004 (26)
January, 2004 (23)
December, 2003 (7)
November, 2003 (14)
October, 2003 (20)
September, 2003 (4)
Post Categories



Managed Windows Shared Hosting

This post will cover how to take a Managed Metadata Service instance (MMS) and either move or copy it from one environment to another! The other posts in this series are as follows (I'll update this list as they are published):

So you're plugging along in a project and this email shows up in your mailbox from some project manager or your boss who asks something like this:

"So, you sold us on using the SharePoint Server 2010 Managed Metadata Service (MMS) for all sorts of things, and we love it and are using it religiously. That's all fine and good but we need to make a copy of it. See, this other group is working on a new project and we need to have a copy of all the taxonomies we created in the production MMS in development. How are we supposed to move it around?"

At first you might think "oh no… I'm going to have to work with those pesky farm administrators to do a backup of the MMS instance and then get it restored in development… man I can't stand those IT pros…" because you're thinking like most of us think: something is running in production so in order to get it running in another environment this must be something like a disaster recovery scenario.

Thankfully this isn't the case… it's actually quite straightforward. SharePoint creates a single SQL Server database where it will store everything when you create a new MMS instance. When you are prompted to enter the name of a database at the time to creating a new MMS instance, if you specify an existing database, provided it has the necessary permissions configured correctly, it will use that database instead of creating a new one.

So the quick an easy steps for moving a MMS from one environment to another are as follows:

  1. Get the name of the MMS instance DB in the source or master SharePoint farm (where you want to copy FROM):
    1. Central Administration » Application Management » Manage Service Applications.
    2. Select the MMS instance and click the Properties button on the ribbon.
    3. From the dialog that appears, write down the name of the database.
  2. From the SQL Server that your source SharePoint farm uses and where the MMS instance DB resides, backup the database.
  3. Take the backup file to your target SharePoint Farm's SQL Server (where you want to restore it to) & restore the database.
  4. Next, make sure you grant DBO rights to the service account that is configured as the identity of the application pool that will be associated with the new MMS instance.
  5. Now, on the target SharePoint farm (where you want to restore the MMS instance to), go through the process of creating an MMS instance except make sure you use the name of the database that you restored.
    1. When SharePoint goes to create the MMS instance it will see a database already exists with that name so it will check to see if it is an MMS database. If so it will use that instead of recreating it.
  6. Verify everything looks good by going into the management page for the new MMS instance after it was created and you should see your taxonomies. To use them just make sure that the appropriate service proxies (aka: connections) are setup with the web applications where you want to use them.

Now, there are three questions I usually get when talking about this.

  • The first one is how do you refresh the development instance after a few weeks/months? Easy, just repeat the process except restore the database over the target farm's MMS database. You don't need to go about recreating the MMS instance. The IDs don't change, just more terms show up.
  • Next question is "well what if I deleted or changed some terms… will those changes take effect in my content?" It depends… this process is good for a source > target copy… this isn't a synchronization routine. If you want something like that you're looking at custom code and working with the SharePoint 2010 Taxonomy API.
  • Last question I usually hear is "after I've restored it in development and made changes, how do I push those changes back into production?" In my mind the taxonomies should be considered content. Do you really move *development* content between environments? Most people don't from my experience. At most they manually recreate it. For taxonomies I think it makes more sense to treat production as "master data" and simply do a one way sync… similar to how we treat content deployment architectures: single master (authoring environment) that does a one-way push to a read-only production. If you really want to do a sync, this is a something you're going to code up yourself as a custom solution unfortunately.
posted on Wednesday, June 15, 2011 7:27 AM

Feedback

# re: SharePoint 2010 Managed Metadata - Moving/Copying MMS Instances / Term Stores between Environments 6/15/2011 12:02 PM Michael F
Gravatar All well and good but in my experience you often need to change the HubURI when restoring the database from Production, maybe its the way we are using the Term Store but if I don't make that update using:

Set-SPMetadataServiceApplication -Identity "<Metadata_Service_Application_Name>" -HubUri "<Application_URL>" -SyndicationErrorReportEnabled

then things do not work after awhile.

# re: SharePoint 2010 Managed Metadata - Moving/Copying MMS Instances / Term Stores between Environments 6/15/2011 12:19 PM AC [MVP SharePoint]
Gravatar @Michael - You're talking about enterprise content types. I was addressing just the taxonomy bit... not the enterprise content types. However you can specify the URL when you create the new instance in the target environment...

# re: SharePoint 2010 Managed Metadata - Moving/Copying MMS Instances / Term Stores between Environments 6/16/2011 2:20 AM SharePointFrank
Gravatar You don't have to code managed metadata sync. There are some 3rd party add-ons available for taxonomy management that are closing some of the gaps, e.g. the "Taxonomy Manager for SharePoint 2010" here:

www.layer2.de/.../...-Manager-SharePoint-2010.aspx

It comes as Part of a "Knowledge Management Suite" with SKOS-based Term Set Export and Import (including updates), Tag Rules and other enhancements.

# re: SharePoint 2010 Managed Metadata - Moving/Copying MMS Instances / Term Stores between Environments 6/16/2011 6:51 AM AC [MVP SharePoint]
Gravatar @SharePointFrank - Point was that this capability is not included with SharePoint. Obviously you're biased (as that appears to be your company) :)... there are other vendors that also do migration that assist with this. I believe AvePoint & Idera also provide tools that do this.

# re: SharePoint 2010 Managed Metadata - Moving/Copying MMS Instances / Term Stores between Environments 6/22/2011 9:55 AM Martin Buus
Gravatar Hi Andrew

Thank you for a great series of post regarding the Term Store / MMS.
You have all the important points in here :).
You might include some information on how to use MMS when you as a developer need to provision content types with Managed Metadata Fields (<Field type="TaxonomyFieldType"... />). This kind of information is available at www.wictorwilen.se/.../...ed-Metadata-columns.aspx . Not my own blog but I've had great use of that post! I think it might be related to your series ;)

Thanks and keep up the good work!

Post Feedback

Title:
Name:
Email:
(email will not be displayed)
Url:
Comments: 
Please add 8 and 6 and type the answer here:    
All Comments Are Filtered & Moderated
Unfortunately comment spammers are just too effecient and are constantly dirtying up blogs with irrelevant and unwanted comments trying to improve their standing on search engines. All comments on this blog are moderated. I do not censor comments, but I don't approve comments with vulger language or those soliciting products. Most of the time comments are approved within a few hours of being submitted with the only exception when I'm traveling.

Why are you asking for my email address?
The only reason I'm asking for your email address, which isn't required to submit a comment, is to provide a gravatar if you've created an account for yourself and associated your email address with a small image. If you have a gravatar created for the email address you submit, it will appear next to your comment. Otherwise nothing will appear.

What is a gravatar?
A gravatar is a "globally recognized avatar." You can get more information about gravatars, as well as create your own for free, at www.gravatar.com. You can also view my gravatar here.


Copyright © 2003 - 2012 Andrew Connell
Creative Commons License 
This work is licensed under a Creative Commons License

 
SharePoint Training
Looking for SharePoint 2010 training for developers, administrators, power users, information workers, end users & web designers? Look no further! My company, Critical Path Training offers the best SharePoint training around! We offer public & private classes both as in-person instructor-loed hands-on classes and online classes. Check out our schedule and course catalog for all the ways we can get you going on your SharePoint path!