Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.