Error using Stsadm –o restore

Got this email earlier this week.

Shane,

I am using the Microsoft Site Undelete tool (download from here) you recommended. I had user delete his site accidently and I am trying to restore it. It was successfully backed up by the tool to a file called sitename.bak. So I ran the command:

Stsadm.exe –o restore –url http://portal/sites/sitename -filename sitename.bak

When I ran the command I got the error:

Your backup is from a different version of Windows SharePoint Services and cannot be restored to a server running the current version. The backup file should be restored to a server with version ‘1178817357.0.105904.0’ or later.

What gives? Shouldn’t my version be 12.0.0.6318 or 12.0.6219.1000?

Thanks

Well after scratching my head for a few minutes I realized the mistake. He was trying to restore an individual site instead of a site collection. The undelete tool is smart enough to know when you do a delete if you are deleting a site or a site collection. When you delete a site the tool will actually do a stsadm –o export before deleting the site, this is what happened to our guy. So to restore the file he simply needed to run the command:

Stsadm –o import -url http://portal/sites/sitename -filename sitename.bak  

(Thanks Jeff)

That is all it takes. So don’t get your site collection backups (stsadm –o backup) confused with your site backups (stsadm –o export).

Also, worth noting because I can hear Todd complaining now. If you will call your sub-sites web and call your site collections sites like the developers do your life will be easier.

Also, also I only have one more chapter on the SharePoint Admin Book to go.

Shane

SharePoint Consulting

39 thoughts on “Error using Stsadm –o restore”

  1. I would never user the -over…  I mean the person who did sent this message to Shane is much too good looking, smart, and talented to use the -overwrite switch… not to mention he is just plain chicken.

  2. And I have the honor of providing just a tad more clarity to the farmer’s post…

    you need to add the -url parameter before the URL or you will recieve the beloved “command line error” from stsadm.

    The full command would read:
    Stsadm –o import -url http://portal/sites/sitename -filename sitename.bak

  3. after restoring one of our instance (staging) using: “stsadm -o restore -url http://bricknet{instance name} -filename D:\ContentBackup\bricknet.dat –overwrite”

    we now get the error:There are no more files. (Exception from HRESULT: 0x80070012)

    and the site won’t come up!

    any help or suggestions would be great.

    doug.sheley@brickmangroup.com

  4. I have observed that pages based on publishing site templates give the “There are no more files. (Exception from HRESULT: 0x80070012) ” when you store/restore. I’m testing now to see if this has to do with the pages beeing checked out at the time of store. Im 80% sure this is it ..

  5. Your backup is from a different version of Windows SharePoint Services and cannot be restored to a server running the current version. The backup file should be restored to a server with version ‘12.0.0.6318’ or later.

    I got this error, while i was trying to restore a site from backup,which was taken from another server.

    Help needed.

    Thanks in advance.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>