Love to code, although it bugs me.

Your backup is from a different version of Microsoft SharePointFoundation

3 comments
Given the task of migrating a Sharepoint 2010 web application, from quality assurance to the live environment, our team backed up the site using the Powershell  Cmdlet "Backup-SPSite". Afterwards, we copied the backup file to the live farm and executed the "Restore-SPSite" Cmdlet. The following error message appeared:
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.0.145.0' or later.
After comparing the patch level on both farms, a missing security update was identified on the live farm. Having multiple applications hosted on the farm, the update roll-out was not an option.
So one of my colleagues found that the old school "stsadm" command allows the backup and restore of Sharepoint sites without checking the build number on the farm.
The solution was to use the following commands:

  1. On the Q&A server, open a command prompt and enter "cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>"
  2. Execute the following command:
  3. STSADM.EXE -o backup -url http://server/site 
    -filename backup.dat
  4. Copy the resulting file to the live farm.
  5. On the live farm, open a command prompt and enter "cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN>"
  6. Execute the following command:
  7. STSADM.EXE -o restore -url http://server/site -filename 
    backup.dat -overwrite
  8. Open the desired URL and check for your site's correct update.
HTH.

Thanks to Nelson!

3 comments :

  1. Moustafa, this solution HAS WORKED for me. Instead of just posting your negative opinion, let me do what you should have done, which is to post your alternative solution if the above fails:
    http://moustafa-arafa.blogspot.com/2011/11/sharepoint-restore-error-your-backup-is.html

    Kind regards,
    Ozzie.

    ReplyDelete
  2. How this can be used if i want to backup and restore port 9000 site
    some thing as following?
    Restore-SPSite http://corporate:9000 -Path -Force

    but to do this if i use STSADM.EXE ?

    ReplyDelete
  3. Moazzam, I believe it's sufficient to just add to port to your site URL, like http://server/site:port_number.

    ReplyDelete