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

Comments

# re: Error using Stsadm –o restore

Thursday, August 21, 2008 8:15 AM by Todd Klindt

You know me all too well.  :)

You'll be an STSADM guru in no time.

tk

# re: Error using Stsadm –o restore

Thursday, August 21, 2008 11:15 AM by Mo Omar

When's the book coming out?

# re: Error using Stsadm –o restore

Thursday, August 21, 2008 2:52 PM by Todd Klindt

The word now is it will be available the end of October.  That's all contingent on whether that slacker Shane gets his last chapter finished or not.

tk

# re: Error using Stsadm –o restore

Tuesday, September 09, 2008 11:22 AM by Eric VanRoy

At least he did not use the -overwrite switch. Had a client do that, not pretty to clean up.

# re: Error using Stsadm –o restore

Friday, October 17, 2008 1:16 PM by Matt Meyer

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.

# re: Error using Stsadm –o restore

Wednesday, October 22, 2008 4:26 PM by Jeff DeVerter

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

# re: Error using Stsadm –o restore

Thursday, December 18, 2008 11:04 AM by Doug Sheley

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

# re: Error using Stsadm –o restore

Thursday, October 15, 2009 5:31 PM by Thomas Reistad

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 ..

# re: Error using Stsadm –o restore

Thursday, October 15, 2009 6:37 PM by Thomas Reistad

Going through , checking in every publishing page, then do a store/restor, worked like a dream.

So Error is not on every P.Page, only on those that was checked out before the move.

ll@okbase.com

# Keep going that way

Thursday, December 31, 2009 3:10 PM by North America escort agency

It is very interesting for me to read this blog. Thank you for it. I like such themes and anything that is connected to them. I definitely want to read a bit more on that blog soon.

Leave a Comment

(required) 
(required) 
(optional)
(required)