1

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

George2
  • 1,137
  • 6
  • 22
  • 41

1 Answers1

1

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.

Marko Carter
  • 4,092
  • 1
  • 29
  • 38