MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Backup and Restore - Cannot restore site

  Asked By: Domonique    Date: Oct 23    Category: MOSS    Views: 1427

I used following script to backup a site:

@SET SPDIR="c:\program files\common files\microsoft shared\web server
@echo off
%SPDIR%\bin\stsadm -o export -url http://connected/o/ict/ -
includeusersecurity -filename D:\backup\siteict.dat -overwrite
@echo off
for /F "tokens=2-4 delims=/ " %%v in ('date /T') do (
set month=%%v
set day=%%w
set year=%%x)
ren D:\Backup\siteict.dat siteict%year%%month%%day%.dat
echo completed

I need to restore site from the backup. I created site where I want
to restore http://connected/o1/ict/restore using the script below:

@SET SPDIR="c:\program files\common files\microsoft shared\web server
@echo off
%SPDIR%\bin\stsadm -o import -url http://connected/o1/ict/restore -
includeusersecurity -filename D:\backup\siteict20080115.dat
@echo off
restore section does not appear in the set URL
http://connected/o1/ict/restore, but restores to default URL

Deleted documents get restored, but not deleted site

What am i dong wrong?

I'm using MOSS 2007 SP1



6 Answers Found

Answer #1    Answered By: Leanne Rios     Answered On: Oct 23

So, the documents  go into a different site  than they were backed up
from? Trying to understand your problem. Import| export  only work at the
site level. So, they will only restore  content from one site to another

Fwiw, export | import  are very poor backup  tools. They do not backup
alerts, recycle bin, and more. They are merely content migration tools
that some use for backup and restore.

Answer #2    Answered By: Zachary Roberts     Answered On: Oct 23

Let me recap my problem

I used stsadm export  to save a site
http://name/siteiwannabackup/subsites in a file siteiwannabackup.dat

When I use stsadm import  to restore  that site  to different URL
http://name/iwannarestorehere/subsites nothing happens. No files,
sites or anything.

In addition, views I setup on webparts in sites
http://name/siteiwannabackup/subsites get reset to default  when I run

I know stsadm is very poor backup  tool. We do have Symantec Veritas
and licenses, however my network admin and Symantec China tech
support told me that our MOSS cannot be backed up using Symantec
Veritas because our web servers are 32bit and sql db is 64bit.
That's another problem I have to deal with. For now I need to restore
deleted subsite…

Answer #3    Answered By: Maura Durham     Answered On: Oct 23

I'm not sure what causes the lack of anything being restored, although I
have seen it before and was never able to solveit.

But I can tell you that your second issue is a known bug with
Import/Export. All listview webparts are set  back to the default  view
when you import  the exported site. This also happens with Site
Templates, which uses the same technology behind the scenes.

Answer #4    Answered By: Jagat Pandit     Answered On: Oct 23

What do you see in your export  logs? .and your import  logs? .any sites,
documents, etc?

Note: We've discovered that new, unpublished documents  aren't exported .the
occasional cause of "missing" documents during import.

Answer #5    Answered By: Jerod Carrillo     Answered On: Oct 23

To clarify, export  exports a website *and all its child web sites* and
import restores  this entire website hierarchy to a particular subsite.

For import  to work more reliably, we have often found it necessary to
pre-create the hierarchy of web sites in the target site  collection using
the Blank team site template (STS#1).

Answer #6    Answered By: Hema Pasupuleti     Answered On: Oct 23

The content migration APIs can be used to programmically *not* export
the child sites.

Checkout this MSDN sample:

Didn't find what you were looking for? Find more on Backup and Restore - Cannot restore site Or get search suggestion and latest updates.