How to Backup Office 365 SharePoint Site Data
In this article
Backing up an Office 365 SharePoint site is essential for protecting critical business data against accidental deletion, corruption, or ransomware. While Microsoft maintains the infrastructure, they operate under a shared responsibility model: you are responsible for your data. This guide outlines how to create reliable backups using both the built-in Export feature and PowerShell methods.
What You'll Need
- An Office 365 tenant with SharePoint Online access.
- Global Administrator or SharePoint Administrator privileges in the Microsoft 365 admin center.
- A local computer with Windows 10 or 11 (for PowerShell execution).
- Microsoft SharePoint PnP PowerShell module installed on your local machine.
- Sufficient storage space on your local drive or network location to store the backup files.
Step-by-Step
- Access the SharePoint Admin Center: Log in to your Microsoft 365 admin account. Navigate to the SharePoint Admin Center at
https://yourdomain-admin.sharepoint.com. If you have multiple tenants, ensure you are viewing the correct one from the dropdown menu in the top right corner. - Select the Site Collection: In the left-hand navigation pane, click on "Sites" and then select "Active sites." Locate the specific site collection you wish to back up. Click on the site URL to open its details panel.
- Initiate the Export Process: In the details panel, look for the "Export" button. Note that this feature exports the entire site collection as a .cab file. Click "Export." A dialog box will appear warning you that the site will be locked for read-only access during the export process. Confirm by clicking "OK." This lock typically lasts for 24 hours.
- Monitor Progress: After initiating the export, you can monitor the status by returning to the "Active sites" list. The status column will change from "Exporting" to "Completed" once the process finishes. This may take several hours depending on the size of the site.
- Download the Backup File: Once the status shows "Completed," go back to the site's details panel. You will now see a "Download" link. Click this link to retrieve the .cab file containing your site data. Save this file to a secure, offline location or a secondary cloud storage solution that is not part of your primary Microsoft 365 tenant.
- Alternative Method Using PowerShell: For more granular control or automated recurring backups, use the SharePoint PnP PowerShell module. Open PowerShell as an administrator and run the command
Connect-PnPOnline -Url "https://yourdomain.sharepoint.com/sites/yoursite". Authenticate with your credentials. Then, use theGet-PnPListItemcmdlet to iterate through lists and libraries, saving items to CSV files or downloading attachments locally. This method requires scripting knowledge but offers greater flexibility.
Common Mistakes
One frequent error is assuming that the native export feature backs up individual files or folders. It does not; it creates a single compressed archive of the entire site collection. Another mistake is neglecting to check the "Read-Only" lock notification. Users often forget that the site becomes inaccessible for editing during the export window, leading to confusion if colleagues try to make changes simultaneously.
Additionally, many administrators fail to verify the integrity of the downloaded .cab file. Always ensure the download completes fully before attempting to extract or restore data. Relying solely on Microsoft's default retention policies is also a risk; retention labels delete content after a set period, whereas a true backup preserves historical versions indefinitely.
Tips
For large sites, consider breaking down the backup strategy. Instead of exporting the entire site collection at once, focus on high-value document libraries first. Use the PowerShell method to script incremental backups of only changed files, which saves time and storage space.
Always store backups in a separate geographic region or a different cloud provider than your primary tenant. This protects against regional outages or catastrophic tenant-level failures. Label your backup files clearly with dates and site names to ensure easy identification during a recovery scenario.
Troubleshooting
If the export fails, check the "Activity log" in the SharePoint Admin Center for specific error codes. Common issues include insufficient permissions or site sizes exceeding the limit for the export tool (currently 10 TB per site collection). If the download link does not appear, wait 24 hours as the file may still be processing in the background.
For PowerShell errors, ensure your version of PowerShell is compatible with the PnP module. Update the module using Update-Module SharePointPnPPowerShellOnline. If authentication fails, verify that Multi-Factor Authentication (MFA) is configured correctly, as modern PowerShell scripts often require app-only permissions rather than user credentials.
Frequently Asked Questions
Does Microsoft automatically backup SharePoint sites?
Microsoft provides geo-redundant storage and version history, but these are not considered backups. They do not protect against mass deletion or ransomware encryption across all versions. You must initiate explicit backup actions.
How long does an export take?
The duration depends on the total size of the site and the number of items. Small sites may complete in minutes, while large enterprise sites can take days. The system processes items sequentially, so complex permission structures can slow down the process.
Can I restore just one document from the export?
No. The native export creates a monolithic .cab file. To restore a single item, you would need to extract the entire archive, locate the specific file, and then manually re-upload it to the live site. Third-party tools offer more granular restoration options.
Is PowerShell backup free?
Yes, the SharePoint PnP PowerShell module is free and included with your Office 365 subscription. However, it requires technical expertise to write and maintain the scripts effectively.
What happens if I delete the original site?
If you delete the site permanently, the exported .cab file remains safe in your local storage. You can use third-party restoration tools to import the contents of the .cab file into a new site collection, though this process is complex and not natively supported by Microsoft.