How to use smigrate script to take backup and restore sites in SharePoint

Backup -
smigrate -w http://system1:5001/sites/dashboard/site1/ -u domain\user -pw password -f backupfilename

Prior to restore make sure to create a site (for ex. http://system1:5001/sites/dashboard/site2/) and when asked to apply template for the site on next page don't apply the teamplate. Just close the browser. Run the command as below

Restore -
smigrate -r -w http://system1:5001/sites/dashboard/site2/ -f backupfilename.fwp -u domain\username -pw password

In MOSS there is no command line utility replacement for smigrate.

1 comment:

Dave Hunter said...

In MOSS there is STSADM -o export. For example:
STSADM -o export -url http://localhost/ProjectSite1 -filename c:\export\ProjectSite1 -includeusersecurity

For more info please see http://dhunter-thinkingoutaloud.blogspot.com/2007/07/stsadm-import-export.html