Self-Hosted M365 Backup

A self-hosted, open-source tool to back up Microsoft 365 mailboxes to standard .eml files. It features a web UI for managing backups, background tasks, search, preview functionality, and secure Microsoft OAuth 2.0 login.

Features

Architecture

Installation Guide

I. Azure Portal Configuration

  1. App Registration:
  2. API Permissions:
  3. Redirect URI:
  4. Client Secret:

Required info: Tenant ID, Client ID, Client Secret Value

II. Server Installation

  1. Requirements: Fresh Ubuntu 22.04 LTS server
  2. Copy install.sh to the server
  3. Make it executable:
    chmod +x install.sh
  4. Run the script:
    sudo ./install.sh
  5. Provide Azure credentials and list of admin emails
  6. Wait for installation to complete; script outputs server access IP

Usage

License

Open-source, MIT License.