Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

STSADM Restore question

  Asked By: Johnpaul    Date: May 13    Category: Sharepoint    Views: 1526

We are trying to restore a site to another site on the same server.
We ahve created the new site using Central Admin. When we run the
STSADM restore command, we keep getting the error message that the new
web site is "already in use" when we know it really isn't. Any ideas?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Darrel Sexton     Answered On: May 13

you dont create the site  before you restore  onto it - stsadm  wont restore to a URL that is in use.

heres what i do when restoring:

say my site was http://portal/sites/sales
-now somebody broke it and a helpdesk ticket was sent to restore it to the last known good backup
-im going to back up the 'broken' site in its just in case "stsadm -o backup -url http://portal/sites/sales -filename \\mysan\sps\backups\temp\sales_broken.bak"
-now i can delete that broken site with "stsadm -o deletesite -url http://portal/sites/sales"
-then, I issue "stsadm -o restore -filename \\mysan\sps\backups\sites\sales.bak -url http://portal/sites/sales" to restore from last known disk backup
-if there is some good stuff on the broken site, i can restore that to an alternate url temporarily "stsadm -o restore -filename \\mysan\sps\backups\temp\sales_broken.bak -url http://portal/sites/sales_broken" and either copy the data that is needed out or have the users do it, then delete the site afterwards "stsadm -o deletesite -url http://portal/sites/sales_broken"


*NOTE - when you use stsadm to restore/delete sites, they are not changed in the "sitedirectory" or the site crawl config for searching. this can be both bad and good..

 
Didn't find what you were looking for? Find more on STSADM Restore question Or get search suggestion and latest updates.




Tagged: