I have 10+ Document Libraries in the Parent Site. I want to move them to a subsite. What is the best approach without coding?
Another option since the libraries are in the site collection is to use Content and Structure from Site Settings to move the content from parent to child site.
The nature of copying/moving the content will copy down any metadata associated with the parent list to the new destination, no need to worry about recreating the list/library structure, you just need an existing target.
Couple of way to achieve it.
- Use the Save the DL as "Save As template with include content option" then create the New DL on Subsite with those template one by one.
- Using the PowerShell( export & Import), export the DL then import it on Subsite. Check this link https://technet.microsoft.com/en-us/library/ee428301.aspx
- Use the 3rd party tools to Move the DL between the Site collections or within Site collection. check ShareGate as they offer free trial.
Go in Document Library --> Document Library Settings --> Save document library as Template
Give FileName, Template Name and check Include Content(if you also want to migrate documents inside document library).
Ok. And to upload Go in Site --> Site Settings ---> List Template --> Upload template here. Then it will be available under libraries.
Get in detailed here, includes other solutions to get this migration job done.
Hope this helps!
You can use below command to export the library
Export-SPWeb "http://sharepointurl/subsite1" -ItemUrl "LibraryURL" -Path "C:\" -IncludeVersions All -IncludeUserSecurity"
Next import the library to new location
Import-SPWeb "http://sharepointurl/subsite1" -ItemUrl "lists/MyList" -Path "C:\" -IncludeVersions All -IncludeUserSecurity
Lastly remove library from the original location
$web = Get-SPWeb urlofweb $library = $web.lists["listname"] $library.Delete()