How to back up and restore your Microsoft Teams files and channel data to prevent loss
Summary
This guide helps you troubleshoot and resolve: How to back up and restore your Microsoft Teams files and channel data to prevent loss. Follow the steps below to fix the issue.
Common Causes
Microsoft Teams stores channel files in SharePoint and personal files in OneDrive for Business. Regular backups of these locations, combined with conversation exports, help protect your organisation against accidental deletion, malicious activity, and data loss. This guide covers the key methods for backing up and restoring Teams data.
Understanding Where Teams Data Lives
Before backing up, it helps to know where Microsoft Teams stores different types of data:
- Channel files — stored in the SharePoint site associated with your team
- Private chat files — stored in the sender's OneDrive for Business
- Channel conversations — stored in Exchange Online group mailboxes
- Private chat messages — stored in individual Exchange Online mailboxes
- Wiki tabs and OneNote notebooks — stored in SharePoint or OneDrive
Backing Up Channel Files via SharePoint
Every team in Microsoft Teams has an associated SharePoint site. You can back up files from that site manually or using built-in sync tools.
Manual Backup from SharePoint
- Open Microsoft Teams and navigate to the team whose files you want to back up.
- Select the Files tab at the top of the channel.
- Click Open in SharePoint in the toolbar.
- In the SharePoint document library, select the folders or files you want to back up.
- Click Download from the top menu. SharePoint will compress the selection into a ZIP file.
- Save the ZIP file to a secure location, such as an external drive or a separate cloud storage service.
Syncing SharePoint Files to Your Computer
- Open the SharePoint document library for your team as described above.
- Click the Sync button in the toolbar.
- If prompted, confirm that you want to open Microsoft OneDrive.
- Choose the folder location on your computer where the synced files should be stored.
- OneDrive will now keep a local copy of all files in that SharePoint library. Any changes sync automatically.
- To create a true backup, copy the synced folder to an external drive or secondary cloud location on a regular schedule.
Backing Up Personal and Chat Files via OneDrive
Files shared in private chats are stored in the sender's OneDrive for Business under a folder named Microsoft Teams Chat Files.
- Open a web browser and sign in to office.com with your Microsoft 365 work or school account.
- Click the App launcher (the grid icon in the top-left corner) and select OneDrive.
- In the left navigation, click My files.
- Locate the folder named
Microsoft Teams Chat Files. - Select the folder and click Download to save a copy to your computer.
- Alternatively, use the Sync button to keep a local copy on your device, then back up that local folder separately.
Exporting Channel Conversations and Chat History
Microsoft Teams does not offer a built-in export button for conversations. However, you can use the following methods to retain conversation data.
Using Microsoft 365 eDiscovery (for Administrators)
- Sign in to the Microsoft Purview compliance portal with an account that has eDiscovery permissions.
- In the left navigation, expand eDiscovery and select Standard.
- Click Create a case and give it a descriptive name, such as "Teams Backup – June 2025".
- Open the case and click Searches, then New search.
- Name the search and choose the locations to include. Under Exchange mailboxes, select the user mailboxes and group mailboxes that contain Teams conversations.
- Define your search criteria. To export all Teams messages, leave the conditions blank or specify a date range.
- Click Submit to run the search.
- Once the search completes, select it and click Export results.
- Choose your export options and download the results. Teams messages are exported as JSON or HTML files, not PST files.
Ctrl+A or dragging to select multiple messages across the UI. This method is best for small, time-sensitive conversations rather than comprehensive backups.Retention Policies and Litigation Hold
Retention policies and litigation hold provide additional layers of protection for Teams data stored in Exchange Online and SharePoint Online.
- Retention policies — Configured in the Microsoft Purview compliance portal to retain or delete Teams channel messages and private chat messages after a specified period. This helps prevent permanent data loss if a user deletes content.
- Litigation hold — Placed on specific Exchange Online mailboxes to preserve all mailbox content, including Teams conversations associated with that mailbox, for legal or compliance purposes.
- Third-party backup solutions — For comprehensive protection, including automated scheduling, granular restore of individual messages, and backup of Teams tabs, Planner plans, and other app data, consider a dedicated Microsoft 365 backup solution. Native tools do not reliably back up tab configurations, Planner task history, or app-specific data.
Restoring Teams Files from Backup
If you need to recover files after accidental deletion or data loss, use the following methods.
Restoring from the SharePoint Recycle Bin
- Open the SharePoint site for your team (via the Files tab and Open in SharePoint).
- In the left navigation, click Recycle bin.
- Select the files or folders you want to restore.
- Click Restore to return the items to their original location.
Restoring from the OneDrive Recycle Bin
- Sign in to OneDrive for Business via office.com.
- In the left navigation, click Recycle bin.
- Select the files you want to restore and click Restore.
- The files will return to their original location in your OneDrive, including the
Microsoft Teams Chat Filesfolder.
Restoring Previous File Versions
SharePoint and OneDrive maintain version history for files. You can restore a previous version if a file was accidentally overwritten or corrupted.
- Open the SharePoint document library or OneDrive folder containing the file.
- Right-click the file and select Version history.
- Select the version you want to restore from the list.
- Click Restore to replace the current file with that version, or click Open to view it before restoring.
Restoring from a Manual Backup
- Locate the ZIP file or copied folder from your backup location.
- Extract the ZIP file if necessary.
- Open the SharePoint document library or OneDrive folder where the files originally lived.
- Drag and drop the restored files into the appropriate location, or use the Upload button.
- Verify that the files open correctly and that version history is intact where applicable.
Restoring Conversation Data from eDiscovery Exports
If you need to recover Teams conversations, you can review the JSON or HTML files produced by an eDiscovery export.
- Locate the exported results folder downloaded from the Microsoft Purview compliance portal.
- Open the folder containing the Teams message exports.
- Teams messages are stored as JSON or HTML files. Open these files in a web browser or text editor to read the conversation content.
- Use the search function in your browser (
Ctrl+F) to locate specific keywords, dates, or participants within the exported HTML files. - Note that eDiscovery exports are for review and reference. They cannot be imported directly back into Microsoft Teams as live conversations.
Setting Up a Regular Backup Schedule
To prevent data loss, establish a routine backup process for your Teams data.
- Weekly — Download a copy of critical channel files from SharePoint and save to an external drive or secondary cloud service.
- Monthly — Run an eDiscovery export of Teams conversations for your organisation or team and store the JSON/HTML results in a secure backup location.
- Quarterly — Review retention policies and litigation hold settings in the Microsoft Purview compliance portal to ensure they still meet your organisation's compliance needs.
- After major changes — Back up files and conversations before deleting teams, channels, or SharePoint sites, or before making significant structural changes to your Teams environment.
Troubleshooting Common Restore Issues
| Issue | Possible Cause | Resolution |
|---|---|---|
| File not found in SharePoint Recycle Bin | Item has been deleted for more than 93 days, or the site collection recycle bin was emptied. | Restore from a manual backup or contact Open a Ticket to explore Microsoft support options. |
| Permission denied when restoring files | Your user account lacks Edit or Contribute permissions on the SharePoint site or OneDrive folder. | Request the site owner or SharePoint administrator grant you the required permissions, then attempt the restore again. |
| eDiscovery export does not include expected messages | Search criteria were too narrow, or the selected mailboxes did not include the relevant group mailboxes. | Edit the search in the Microsoft Purview compliance portal, expand the date range or mailbox selection, and re-run the export. |
| Cannot open exported Teams messages | Exported files are JSON or HTML, not PST. Attempting to open them in Outlook will fail. | Open the JSON or HTML files in a web browser or text editor to review the conversation content. |
| OneDrive sync not reflecting deleted files | Sync client is paused, or there is a sync conflict. | Check the OneDrive sync status icon, resume syncing if paused, and resolve any conflicts shown in the OneDrive activity centre. |
For assistance with configuring retention policies, licensing eDiscovery, or restoring Teams data, Open a Ticket.
Still Having Issues?
💻 Open a Ticket