SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Task to move data of Document Library from on Site to sub site, below is the situation, Using office 365 Need to migrate a library and its folder to a sub site where folders would be treated as libraries in that sub site The size of the library is 3.29 GB. I have to write a custom code for this. The various details of the documents etc must be restored like the modification date, version history etc.

share|improve this question
What is the question? Of course you need write custom code for this task or use 3rd party components from sharegate, metalogix or something else. – Roman Apr 12 '14 at 11:53

You need to save the Document Library as template including its content:

  1. Go to the library you would like to migrate, click LIBRARY in the upper left corner> click Library Settings.
  2. Click Save document library as template > type in the File name and the Template name > select "Include Content" > click OK. Then the template has been saved to List Template Gallery.
  3. Go to the destination site, click Site Contents > click add an app.
  4. In the search box, type in the name of the template you have created to create a new library. The newly created library is the same as the one in another site.

Reference: SharePoint Online - Migrate document library

enter image description here

enter image description here

share|improve this answer

Your Answer


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.