The Stsadm command-line tool has been deprecated, but is included to support compatibility with previous product versions. We recommend that you use Microsoft PowerShell when performing command-line administrative tasks. If you use the NoFileCompression parameter in the Export-SPWeb command, you must also use it when you import the content by using the Import-SPWeb command. Using this parameter will result in a backup folder being created instead of a compressed file. Using this parameter can lower resource usage up to 30% during the export process. The NoFileCompression parameter lets you specify that no file compression is performed during the export process. To view the progress of the backup operation, use the Verbose parameter. If you want to overwrite the file that you specified, use the Force parameter. To include the user security settings with the list or document library, use the IncludeUserSecurity parameter. To specify which version of the site, list, or document library to include, use the IncludeVersions parameter and specify "LastMajor" (default), "CurrentVersion", "LastMajorandMinor", or "All". The data in the deleted site collection is then deleted gradually over time by a timer job instead of at one time, which reduces its effect on the performance of farm servers and SQL Server. When this parameter is used, the site collection is marked as deleted, which immediately prevents any further access to its content. If you are exporting a large site, list, or document library, you can use the GradualDelete parameter. is the URL for the site, list, or library where you are exporting. is path and name for the site, list, or library that you are exporting. is URL for the site, list, or library that you are exporting. For additional information about PowerShell permissions, see Add-SPShellAdmin.Īt the PowerShell command prompt, type the following command: Export-SPWeb -Identity -Path If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. Securityadmin fixed server role on the SQL Server instance.ĭb_owner fixed database role on all databases that are to be updated.Īdministrators group on the server on which you are running the PowerShell cmdlets.Īn administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets. Verify that you have the following memberships: To export a site, list or document library by using PowerShell You can use PowerShell to export a site, list, or document library manually or as part of a script that can be run at scheduled intervals. Use PowerShell to export a site, list, or document library in SharePoint Server You cannot use SQL Server tools or Data Protection Manager to export a site, list or document library. For better performance, we recommend that you export to the local computer and then move the export file to a network folder. You can only export one site, list, or document library at a time.įor information about what to back up and which tools to use, see Plan for backup and recovery in SharePoint Server.īefore you begin this operation, review the following information about prerequisites:īefore you begin, you must create a folder on the local computer or the network in which to store the export file. It is a simple process and helps make sure that data is available for recovery, if that is required. Regularly exporting sites, lists, and document libraries reduces data losses that might occur from hardware failures, power outages, or other problems. However, business or IT requirements might require you to export a site, list, or document library. We recommend that you regularly back up the complete farm. The backup tool that you use depends on the kind of environment that you have deployed, your backup schedule requirements, and service level agreements that you have made with your organization. You can export a site, list, or document library in SharePoint Server by using the SharePoint Central Administration website or Microsoft PowerShell. APPLIES TO: 2013 2016 2019 Subscription Edition SharePoint in Microsoft 365
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |