This blog is moved to

Monday, March 29, 2010

MOSS Site Export Import

MOSS comes with a handy utility named “stsdam”. The utility is present in the following folder by default.

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN

For exporting a site use the following command


Either move to the BIN folder or SET path to BIN folder. The complete command is

stsadm –o export –url http://sites/site –filename –overwrite

Replace http://sites/site with your site name and filename with the required filename you want. The switch overwrite will overwrite the file if the name you specified already exist. For getting the complete help of export, try the following command

stsadm –help export

If the exporting runs without error, you will get the following message


For importing you can use the import statement with stsadm.

stsadm –o import –url http://newsites/site –filename

On success you will get a similar screen with the message “Operation completed successfully” at the end.

For more help on import use

stsadm –help import

Hope this helps!!!

No comments: