Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am using publishing portal template.

I have a source web site called http://server1/site1, and I want to restore it to another machine whose URL is http://server2/site2.

I want to know in stsadm -o restore, how to specify the destination changed URL?

thanks in advance, George

share|improve this question
up vote 1 down vote accepted

The syntax is:

stsadm -o restore -url http://destinationsiteurl/ -filename backupfilename.bak

where 'destinationsiteurl' is the url of the location you want to restore to and 'backupfilename.bak' is the name of the backup file you are restoring from. For example if your backup file was called site1.bak the syntax would be

stsadm -o restore -url http://server2/site2/ -filename site1.bak

If you get a message saying that the destination site already exists you have to add the -overwrite qualifier eg

stsadm -o restore -overwrite -url http://server2/site2/ -filename site1.bak

There's a great write up on this functionality as well as the GUI backup and restore here.

The full list of properties and methods for stsadm is at Microsoft here.

share|improve this answer
If I need to change the url at the destination machine, I need to backup/restore at site collection level other than site level? – George2 Jan 15 '10 at 13:59
Question answered! – George2 Jan 16 '10 at 11:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.