Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a list template (.stp) file. I would like to restore the list and its contents in any given SharePoint environment. The conditions for restoring are listed below:

  1. Restore the list to any given SharePoint environment/server (as stated above),
  2. Preserve the GUID of the list across environments so that the references (lookup fields) are carried over.
  3. Preserve the list metadata including the version history and last modified (date, user, etc).

I am looking to do this in SharePoint 2010 environment. During my search I found the following suggestions, but none of these fulfill all the conditions as listed above:

Please let me know if there is a way to do this using PowerShell or otherwise. Else, I plan to write my own cmdlet. Thank you.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

If you want to Preserve the GUID, you can use backup-restore content database approach. Simply back-up your content database from your old SQL Server environment, restore it in new SQL Server environment(or new database in the same SQL Server Instance) and add your restored content database to sharepoint via central admin.

Unfortunately, it will carry all site collection and web under that content database, not specific list.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.