Attaching Recovered content database to site collection

elpeck 21 Reputation points
2020-09-03T16:50:53.277+00:00

Hi;

We lost some content recently and I am exploring recovering from a backup of a content database. I created a new web app with a root Site collection the connected the database to the webApp by doing this --> Mount-SPContentDatabase "RecoverDB" -DatabaseServer "MyServer" -WebApplication http://newsite

Then Move-SPSite http://servername/sites/sitename -DestinationDatabase RecoverDB

However, I cannot browse the site collection to see any cotent. I get a 404 error. When I attached the site I noticed that SiteCollection value was 0.

However, I took a peek into the sql tables and it looks like a site is there, in addition to all the other content. Is there something that I am missing?

Is there a different/better way to accomplish what I am trying to do here?

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,955 questions
0 comments No comments
{count} votes

Accepted answer
  1. Trevor Seward 11,706 Reputation points
    2020-09-03T17:43:53.343+00:00
    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. elpeck 21 Reputation points
    2020-09-03T19:58:48.143+00:00

    Well I was able to by adding the switch -AssignNewDatabaseID with Mount-SPContentdatabase. However, the content is still not viewable as I get either http 200 connection:close or 404 errors.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.