In this tutorial, I will show you how to Backup and Restore a List or Document Library in SharePoint PowerShell. So for our example , you can see the following image:
The list in this case of interest is the ‘test’ list.
1 |
Export-SPWeb "http://www.domain.com/" -itemurl "/Lists/test" -path "c:\test.cmp" |
Please note the trailing slash on the URL.
Now if we deleted the list through some horrible mistake the import command is as follows.
1 |
Import-SPWeb "http://www.domain.com/" -Path "c:\test.cmp" |
There are various flags that can be added like ‘-force’ or ‘-UpdateVersions’.
SharePoint 2013 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.