How to quarterly backup OneDrive files of the whole organization in Azure and save permanently?

Linda Guo 0 Reputation points
2024-06-07T22:12:12.8266667+00:00

Hi all,

I want to backup the whole organization's files on OneDrive on quarterly basis and save them permanently. How can I do this on Azure?

Thank you!

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,863 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247-1375 12,506 Reputation points
    2024-06-09T10:40:31.45+00:00

    Hi Linda Guo,

    Thanks for reaching out to Microsoft Q&A.

    • Using azure file sync:

    'Azure file sync' enables you to centralize your organization’s file shares in Azure Files while maintaining the flexibility, performance, and compatibility of a Windows file server. By transforming your Windows Server into a quick cache of your Azure file share using protocols like SMB, NFS, and FTPS, you can optimize storage costs with cloud tiering. Multi-site access and sync ensure that changes made in one office automatically sync to servers in other offices. For business continuity and disaster recovery, Azure File Sync leverages Azure Files’ redundancy options. Also pls note that while Azure File Sync doesn’t directly back up OneDrive data, it’s valuable for file share synchronization.

    https://video2.skills-academy.com/en-us/azure/storage/file-sync/file-sync-introduction

    • Using azure functions with storage account:
      • Create a new storage account where the backups will be stored
      • Configure OneDrive API Access by registering application in AAD to access the OneDrive
      • Provide all the necessary API permissions to Microsoft graph and files and make sure admin consent is granted for these permissions
      • Setup azure function for backup automation using script
      • Authenticate the registered app and retrieve access tokens
      • Use Microsoft Graph API to iterate through onedrive files and download them first. Now upload the downloaded files to azure storage account
      • Scheduled the azure function and use azure monitor to track the execution and you can also setup alerts.

    Make sure you Implement lifecycle policies in azure storage to archive or delete old backups if needed to reduce the cost.

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.