Restoring a Tridion CMS Database in an Existing Environment

Every now and then, I need to restore SDL Tridion CM databases between environments, and each time I have to recall all of the steps involved. This time, I decided to share them with the world.

For this restore, I'm using SQL Server and SDL Tridion 2011 SP1, and will be restoring the Production CM database into the Development environment.

  1. First up, take a back up of the primary (in this case Production) Tridion Content Manager database.

dd4t3-5


  1. Copy the backed up database to secondary (Development) environment.

  2. It is good practice to also backup the secondary environment database, so you can retrieve anything missing from the primary environment.

  3. Before beginning any database restoration, stop all Tridion services in secondary environment including COM+, Tridion Windows services and IIS.

  4. Now you can restore the primary database on secondary database server, ensuring the database filenames are updated during the restore wizard to overwrite the existing databases. Otherwise, twice as much disk space will be used and it will be confusing determining which database files have been orphaned.

  5. Note, you will still need to add the SQL Server user to the restored database with the correct access permissions.

dd4t3-2

  1. Check the dbo.Trustees table, ensuring the enabled users are correct and that the correct admin user and MTSUser are present.

  2. Another database level update required is to reset the dbo.Queue_Consumers table, setting all servers IS_ONLINE value to zero.


dd4t3-3


  1. Restart all the Tridion services in the secondary environment including COM+, Tridion Windows services and IIS.

  2. Next, I normally login to the secondary Tridion environment to check it loads OK.

  3. Run the included purge and re-index tools to clear out remaining queues and re-populate the Tridion search index.

dd4t3-4

  1. Now within Tridion, you will need to update the Publish Targets including:

    1. Session Preview URL

    2. Staging website URLs

    3. Publish destination details

  2. Also within Tridion, you should update the SiteEdit Editor URL on the “Enable inline editing for Page” Template Building Block for each Page Template.

  3. Create new Broker (Content Delivery) and Session Preview databases for each environment; for ease, I remove the existing databases, and create new identical ones to avoid configuration changes in each website.

  4. Test publishing to each environment.

  5. Republish all websites.

  6. Test key functionality of websites to ensure the restore has been completed successfully.

Any questions?

If you need more information or have any questions just get in touch and we'd be happy to answer them for you.