Restore a top level site to a subsite in different Sharepoint site.
Hi, I have created a top level sharepoint site in MOSS 2007. I have taken th backup of the top level site using stsadm.exe command. Now, the requirement is that I need to restore the backup to a subsite (in another SharePoint site). When I restore it using stsadm.exe with the proper url and filename, it overwrites the top level site. Please give some idea to overcome this problem. Please Note: The master page and css of both the sharepoint sites are the same.
January 17th, 2008 10:57am

Can you post your (restore) stsam command line ?Mike Walsh
Free Windows Admin Tool Kit Click here and download it now
January 17th, 2008 12:12pm

The stsadm command i used for restore: C:\.....\12\BIN> stsadm.exe -o restore -url http://mdpemr141333:12345/sites/testsite/dev/userdetails -filename backup.dat overwrite The backup.dat is a backup file of a top level site. I am restoring to subsite of another sharepoint site.
January 17th, 2008 6:00pm

If you're going from MOSS to MOSS, import / export will do exactly what you are looking for.
Free Windows Admin Tool Kit Click here and download it now
January 17th, 2008 8:46pm

Hi, Can u please give me the syntax for that import/export command for both backup and restore.
January 18th, 2008 8:07am

Hello, The Export Command would be stsadm -o export -url <fullurl which u want to export> -filename <location:filename.dat> Import : stsadm -o import -url <destination url> -filename <location where u stored.dat file>
Free Windows Admin Tool Kit Click here and download it now
January 18th, 2008 3:04pm

Hi, I'm having the same issue. We would like to move from basic install/local database to a 2 server farm. I'm running virtual servers to test the deployment and when I import a site as subsite, it's overwriting the top level site. Here's the format that I use. stsadm -o export -url http://servename/sites/site -filename d\backup\siteexport -includeusersecurity -versions 4 -nofilecompression. stsadm -o import -url http://servername/subsite -filename c:\backup\siteexport -includeusersecurity -nofilecompression. I was wondering if someone has the answers for this issue? Thanks
May 12th, 2008 11:13pm

Try this Take a backup of site collection using stsadm stsadm -o backup -url <url> -filename <filename> In the destination , create a sub-site without template, using stsadm stsadm -o createweb -url <url> restore the backup to new-created site use -overwrite stsadm -o restore -url <url> -filename <filename> -overwrite Xavier Ravi
Free Windows Admin Tool Kit Click here and download it now
May 13th, 2008 1:40am

I have found the solution. The old site was created using the /sites/ path and all sites are all site collections. I createdthe mainweb application/site collection/top-level siteand blank sub-sites using the root path for the main site. I created a second web application and sites collections/blank top-level sites using the sites pathjust like the old sites. I backed-up all site collections and restored to the second web application/site collections/blank top-level sites. I then exported all site collections from the second web application and imported to the main site sub-sites.
May 23rd, 2008 3:49pm

For future reference I have a custom stsadm command (gl-moveweb) which will do all this for you: http://stsadm.blogspot.com/2007/09/move-web.html
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2008 5:39am

Hi I would suggest that you use import/export instead of back up/resotre.In fact, stsadm –o export/import is the only standard operation that allow you to store subsite (a spweb) while backup and restore is used for site collection or web application. so your solution is stsadm –o export –url http://momoserver/hi -filename "C:\backups\hi.bak" Restore: stsadm –o import –url http://coco -filename "C:\backups\hi.bak" cheers Note: you can check the following link for more insight : http://blogs.msdn.com/b/yvan_duhamel/archive/2009/05/18/some-key-differences-between-stsadm-export-and-backup-operations.aspx Momo
June 21st, 2010 4:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics