Search This Blog

Monday, November 22, 2010

Back up and Restore Site Collection / Sites Using STSADM Utility Export / Import

STSADM.EXE utility export and import operations are used to backup and restore site collections and sites. These operations are limited to site collections and sites only.  

STSADM.EXE is usually located at “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN”. No GUI interface for the STSADM utility is available. The old and trusted command line is used for the utility

The backup contains library content, list content, navigation, user information, security settings, personalize settings like views and content types and customization but does not contain alerts, workflows and properties.

For backup, we use export operation which has the following syntax: 
stsadm -o export 
-url <URL name>
-filename <export file name>
[-versions] <1-4>
[-cabsize] <integer value>

Parameter Description
url URL of the site collection / site
filename Name of the backup file
overwrite Overwrite the already existed backup file
includeusersecurity Maintain the security settings
haltonwarning Stop the export operation when a warning occur
haltonfatalerror Stop the export operation when an error occur
nologfile No log file will be generated at the end of the export operation.
versions Values ranges from 1 to 41-          Default value, last major versions of the files and list items included.2-          The current version, either the major or the last minor version included.3-           Last major and last minor version of the files and list items included.4-          All versions of the files and list items included.
cabsize Value ranges from 1 to 1024. set the total size of cabinet file. Once  size limit is reached, another cabinet file is created.
nofilecompression Disable file compression. If compression is allowed, export operation can increase by 30%
quiet Export operation information will not be displayed and operation will end with success message.

The command that I use to run is  
stsadm –o export –url htpp://URL –filename E:\backup\ –includeusersecurity –versions 4 –cabsize 1024 –nofilecompression  
This command will create a directory


First you have to create an empty website to restore. This can be done using Microsoft Office SharePoint Designer 2007.
For this, open Microsoft Office SharePoint Designer 2007 and move from File menu to New and click on Web Site. In the New Dialog box, select Web Site tab, then select General and then Empty Web Site. Give the desired URL  in the text box at the bottom of the dialog box and click OK. Microsoft Office SharePoint Designer 2007 will create a new empty web site.  
To restore, we use import operation which has the following syntax: 
stsadm -o import
-url <URL name>
-filename <import file name>
[-updateversions] <1-3>

Parameter Description
url URL of the site
filename Name of the restore file
includeusersecurity Maintain the security settings
haltonwarning Stop the export operation when a warning occur
haltonfatalerror Stop the export operation when an error occur
nologfile No log file will be generated at the end of the export operation.
updatversions Values ranges from 1 to 31       Default value, will add new version to the current file.2        Overwrite the file and all of its versions.3       Ignore the file if it exists of the destination.
nofilecompression Either enables or disables file compression in the import package. The import package is stored in the folder specified by the -filename parameter. It is recommended to use this parameter for performance reasons. If compression is enabled, it can increase the import process by approximately 30%.
quiet Export operation information will not be displayed and operation will end with success message.

The command that I use to run is  
stsadm –o import –url htpp://URL –filename E:\backup\ –includeusersecurity –updateversions 3  –nofilecompression  

Error occurred while exporting the web http://site URL
Access is denied.(Eception from RESULT:0×8007005(E_ACCESSDENIED)) 

You are not the administrator of the site collection. 

Add yourself as site administrator. For this, open SharePoint Central Administration. Move from “Application Management” to “Site collection administrators” under  “SharePoint Site Management”. Add yourself as administrator in the appropriate site collection


  1. CoPilot Live can help make a planned getaway even more enjoyable. With millions of Points of Interest including restaurants, parks to grill, and a variety of attractions, CoPilot Live can help you find and navigate to your ideal destinatisbobeton this weekend. Whether it’s a short drive to the beach or a long vacation getaway, GPS navigation on a mobile device is proving to be a very popular traveling companion

  2. This article will help the internet users for building up new webpage or
    even a blog from start to end.
    Also see my webpage - captain black

  3. Yesterday, while I was at work, my cousin stole my iPad and tested to
    see if it can survive a twenty five foot drop, just so she
    can be a youtube sensation. My apple ipad is now broken and
    she has 83 views. I know this is completely off
    topic but I had to share it with someone!
    Visit my site :: amber leaf

  4. Please let me know if you're looking for a author for your weblog. You have some really good articles and I believe I would be a good asset. If you ever want to take some of the load off, I'd absolutely love to write some
    articles for your blog in exchange for a link back to mine.

    Please shoot me an e-mail if interested. Thank you!
    Feel free to visit my weblog : Koti Antalyasta

  5. Hello! Would you mind if I share your blog with my twitter group?
    There's a lot of folks that I think would really enjoy your content. Please let me know. Thank you
    Also see my page >

  6. I am curious to find out what blog platform you're using? I'm experiencing some minor security problems with my latest site and I would like
    to find something more secure. Do you have any suggestions?
    Here is my web site :: turkey property for sale

  7. Appreciation to my father who shared with me regarding this webpage, this
    web site is genuinely remarkable.
    Feel free to visit my web site Ferienwohnung bodrum

  8. I pay a quick visit day-to-day a few web sites and
    blogs to read articles or reviews, however this weblog
    provides quality based content.
    My webpage > Leilighet i Tyrkia

  9. Hi, of course this piece of writing is in fact pleasant and I have learned lot of things from
    it on the topic of blogging. thanks.
    Feel free to visit my blog - Asunnot Alanya

  10. I like what you guys are up too. Such clever work and reporting!
    Keep up the great works guys I've added you guys to my own blogroll.
    Here is my web site :

  11. I have fun with, lead to I found exactly what I
    used to be taking a look for. You've ended my four day long hunt! God Bless you man. Have a great day. Bye
    Feel free to surf my web blog - property in alanya

  12. Have you ever thought about publishing an ebook or guest authoring on other blogs?
    I have a blog centered on the same subjects you discuss and would love to
    have you share some stories/information. I know my readers would appreciate your work.
    If you are even remotely interested, feel free to send me an email.
    Here is my webpage diablo 3 gold farming

  13. Excellent post. Keep posting such kind of info on your page.
    Im really impressed by your blog.
    Hello there, You've performed a fantastic job. I'll certainly
    digg it and personally recommend to my friends. I am sure
    they will be benefited from this web site.
    Feel free to visit my web page : laser tattoo removal

  14. Hi there I am so excited I found your webpage, I really found you by accident,
    while I was looking on Askjeeve for something else, Regardless I am here now and would
    just like to say thanks a lot for a remarkable post and a all round interesting blog (I also love the theme/design),
    I don’t have time to read through it all at the minute but I have saved it and also included your RSS feeds, so when I have time I will be back to read
    much more, Please do keep up the fantastic work.
    Have a look at my weblog :: skin whitening

  15. Good day! This is kind of off topic but I need some guidance from an
    established blog. Is it tough to set up your own blog?
    I'm not very techincal but I can figure things out pretty fast. I'm thinking about creating my own but I'm not sure where to begin. Do you have any ideas or suggestions? Cheers
    Visit my web page ; male breast Reduction

  16. An impressive share! I've just forwarded this onto a colleague who was conducting a little homework on this. And he actually ordered me breakfast because I found it for him... lol. So let me reword this.... Thank YOU for the meal!! But yeah, thanx for spending the time to discuss this matter here on your web page.
    Also see my webpage - erinmore flake

  17. I'm really enjoying the design and layout of your site. It's
    a very easy on the eyes which makes it much more pleasant for
    me to come here and visit more often. Did you hire out a designer
    to create your theme? Fantastic work!
    Also visit my web blog :: samson tobacco

  18. Hey there! Do you know if they make any plugins
    to protect against hackers? I'm kinda paranoid about losing everything I've worked hard on.

    Any suggestions?
    Also visit my homepage : drum tobacco online

  19. Heya i am for the primary time here. I came across this board and I to find It really helpful & it helped me out a
    lot. I hope to present something back and aid
    others like you aided me.
    Feel free to visit my homepage - no more acne

  20. Since the admin of this web site is working, no uncertainty
    very quickly it will be well-known, due to its quality contents.
    Feel free to visit my web page :: money taking surveys

  21. I'm not sure why but this web site is loading incredibly slow for me. Is anyone else having this problem or is it a issue on my end? I'll
    check back later on and see if the problem still exists.
    My website - skin whitening

  22. I've been browsing online more than 3 hours these days, but I by no means found any attention-grabbing article like yours. It is beautiful worth enough for me. In my opinion, if all web owners and bloggers made excellent content as you probably did, the web can be much more helpful than ever before.
    My website ; make money working at home

  23. When someone writes an paragraph he/she keeps the idea
    of a user in his/her mind that how a user can understand it.
    So that's why this paragraph is amazing. Thanks!
    Also visit my webpage : bleaching skin

  24. Hello there! I could have sworn I've visited this blog before but after browsing through a few of the posts I realized it's new to me.
    Anyways, I'm definitely pleased I came across it and I'll be book-marking it and checking back frequently!
    Also visit my webpage - tattoo removal

  25. Hey there, You've done an excellent job. I will certainly digg it and personally suggest to my friends. I am sure they'll be benefited from this website.
    Feel free to visit my page ; diablo 3 guide

  26. I am regular reader, how are you everybody? This piece of
    writing posted at this web site is in fact pleasant.
    My weblog - professional seo company

  27. Greetings! Very useful advice within this post! It is the little changes that produce the most important changes.
    Thanks a lot for sharing!
    Have a look at my homepage :

  28. Nice blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple tweeks
    would really make my blog jump out. Please let me know
    where you got your design. Thank you
    My blog ; best acne treatment for boys

  29. It's amazing to pay a quick visit this web site and reading the views of all friends on the topic of this piece of writing, while I am also zealous of getting knowledge.

    Review my website - writing online

  30. What's up, after reading this remarkable post i am as well cheerful to share my experience here with colleagues.

    Feel free to surf to my web blog ...

  31. What's up, all is going well here and ofcourse every one is sharing information, that's in fact excellent, keep up writing.

    Feel free to surf to my site;

  32. Can you use a Pacemaker? Here are definitely the
    Main Indications

    Here is my website: explosive

  33. Anyhow, the Somanabolic Muscle Maximizer is unique from
    the feeling that it's not a normal exercise application but a specific one particular which helps various folk attain their diverse health and fitness targets. Many people wish to increase their lean muscle mass and create your toned, developed body that is not only aesthetically attractive, but strong and healthy additionally. Whenever upgrades became ready you'll fully grasp this totally free no matter what quantity of money cost to establish them.

    my web site: muscle maximizer results

  34. Directory The 5 Most-loved Men's Devices Ever.

    my page - payday loans