Originally published at tothenoc.substack.com

Two layers, no extra cost, and the only test that counts.

A company I work with had used Microsoft 365 for years. Mail, SharePoint, OneDrive, hundreds of gigabytes. Backed up: zero bytes. There had been a backup subscription once. It expired, and its dashboard said so honestly. Nobody was reading it.

The usual answer is "Microsoft keeps it". Microsoft keeps the service running. That is not the same as keeping your data the way you need it. Delete a mailbox, empty a recycle bin, let a user leave and the account get cleaned up, and after the retention windows it is gone.

So there are two separate problems. Things deleted inside the tenant. And a copy outside it, that you control. I fixed both, and neither cost anything extra.

Layer one is retention. A retention policy is already in the license if you have Business Premium or E3. One policy for Exchange, SharePoint, OneDrive and Microsoft 365 groups, one rule: keep content one year from the last change. Keep only, never delete.

Connect-IPPSSession -UserPrincipalName admin@yourtenant.onmicrosoft.com New-RetentionCompliancePolicy -Name 'Retain-1y' -ExchangeLocation All -SharePointLocation All -OneDriveLocation All -ModernGroupLocation All New-RetentionComplianceRule -Name 'Retain-1y-rule' -Policy 'Retain-1y' -RetentionDuration 365 -RetentionComplianceAction Keep -ExpirationDateOption ModificationAgeInDays 

What I learned doing it:

  • I left out the preservation lock. A locked policy can never be removed, not even by you. Decide that on purpose, later.
  • Teams chats need their own policy.
  • In SharePoint and OneDrive, what is kept goes to a hidden library that uses the site's storage quota.
  • The rule may answer "failed to be deployed" on the first try while it actually exists. Distribution stays Pending for up to a day. In the lab it even went to Error, the retry answered with an error too, and then it went back to Pending. Check the next day, not the next minute.

Retention protects against deletion. But it lives in the same tenant, behind the same admin accounts. That is why there is a second layer.

Layer two is a real copy outside Microsoft 365. One of the established Microsoft 365 backup products has a free community edition: no time limit, up to ten users, ten teams and one terabyte of SharePoint data. For a small company that is often everything. Shared mailboxes without a Microsoft 365 license do not count against the ten. One thing to read before you use it for others: the installer says the community edition is not for consultants or providers running it for their clients.

It needs a Windows server you already have, and some resources. I gave it eight cores and 24 GB on an existing backup server. Adding the organization with modern authentication registers its own application in Entra ID. If Conditional Access blocks device code sign-in, the registration fails. Exclude the admin for those few minutes, then put the block back.

One repository on a local disk, with retention in years, not days. One job for the whole organization, weekly. The first full run takes hours, and the statistics in the console froze. Watching the repository folder grow was the honest progress bar.

It finished with warnings. Nearly all of them were group mailboxes with no owner, old groups whose owners had left. Those cannot be protected until somebody owns them. Give them an owner, and the next run picks them up.

Then the only test that counts. On a test tenant I deleted a mail, emptied it from deleted items too, opened the mailbox at the last restore point and restored it to the original mailbox. It was back in the inbox. Same for a deleted SharePoint file. If you have not restored one item yet, you do not have a backup. You have a job that runs.

The fine print:

  • past ten licensed users you need a paid license,
  • if the repository sits on the same storage as everything else, one failure takes both. Plan a second copy.

Two layers, zero cost, one restore test. The whole setup on a test tenant, step by step: Microsoft 365 Backup for $0

-- Alexandru