Pages

Wednesday, August 15, 2012

Issue while restoring a site backup using stsadm/powershell




I faced an issue today attempting to restore a backup I had taken using stsadm. I had received the following error in stsadm when running the stsadm restore command:


stsadm -o restore -url http://abc/sites/xyz -filename e:\backup.bak -overwrite

I was getting the below error :

Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored to a server running the current version. The backup file should be restored to a server with version '4.1.10.0' or later.

Then I tried it in powershell:


Restore-SPSite -Identity http://abc/sites/xyz -Path e:\backup.bak

Restore-SPSite : Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored to a server running the current version. The backup file should be restored to a server with version '4.1.10.0' or later.

Same error :-(

I tried updating with the Cumulative Updates and Service Packs. That didnt help either.

In this scenario, the resolution is to restore the site collection to a new content database.
Using either  stsadm or powershell commands, restore the site collection to a new content database. It worked for me


The Powershell script i used for restoring is given below for your reference:

Restore-SPSite -Identity <Site collection URL> -Path <Backup file> [-DatabaseServer <Database server name>] [-DatabaseName <Content database name>] [-HostHeader <Host header>] [-Force] [-GradualDelete] [-Verbose]


Restore-SPSite -Identity http://abc/sites/xyz -Path -Path e:\backup.bak -DatabaseServer xxx -DatabaseName WSS_Content_xxx


Voila!!! The restore worked now.

1 comment: