Archive SharePoint data to Azure Blob with rclone
Move cold SharePoint data to cheap Blob storage with rclone, verify it, then free the SharePoint space.
Draft. The fix is known and correct, but we're still writing up the full step-by-step.
Build
- A small Linux VM in Azure (close to the storage account) with rclone installed.
- A storage account with a container for the archive. Cool or Cold tier is usually right for this.
- Give the VM a managed identity with Storage Blob Data Contributor on the account.
Remotes
- Blob: an
azureblobremote withuse_msi = true, so no keys are stored on the VM. - SharePoint: a
onedriveremote withdrive_type = documentLibrary, authorized with OAuth.
Transfer
- Pilot with one small folder first.
- Use throttling-safe settings for SharePoint, for example
--transfers 4 --checkers 8 --tpslimit 10, and expect throttling (HTTP 429) on large libraries. - Match folder names exactly. SharePoint and Blob both allow characters that trip up careless path handling.
Verify, then delete
- Compare counts and sizes:
rclone sizeon both sides, thenrclone check source: dest:. - Only then delete from SharePoint.
- Empty both recycle bin stages (see M365-20). Deleted files still count against SharePoint storage until both stages are purged.
This guide is being expanded with full steps.
Seeing this in your environment?
We can check for this, and everything around it, as part of an audit.