{% extends "base.html" %} {% block title %}Setup — BackupWatch{% endblock %} {% block content %}

First-run setup

    {% for n, label in [(1,"Administrator"),(2,"Mailbox"),(3,"Import date"),(4,"Users"),(5,"Notifications")] %}
  1. {{ n }}{{ label }}
  2. {% endfor %}
{% if error %}{% endif %} {% if info %}{% endif %} {% if test_result %}{% endif %}
{% if step == 1 %}

Create the administrator

This is the account you'll use to manage BackupWatch.

{% elif step == 2 %}

Connect your mailbox

Where your backup-notification emails arrive. Pick a provider — or skip and set it up later under Settings → Mailbox.

{% set prov_ui = 'graph' if values.mail_provider != 'imap' else ('google' if values.imap_auth == 'google' else 'imap') %}

Reads the mailbox via Microsoft Graph using an Azure app registration with the Mail.ReadWrite application permission (admin-consented) — that registration gives you the Tenant ID, Client ID and secret below. Setup: Register an app in Microsoft Entra ↗ · Entra admin center ↗. Full guide: Documentation/M365-SETUP.md.

Gmail or Google Workspace, using a Google App Password ↗ (needs 2-step verification, with IMAP enabled). Server details are set automatically. Prefer Sign in with Google (OAuth)? Connect it after setup under Settings → Mailbox.

Any mail server that speaks IMAP. Secrets are encrypted at rest and never shown back.

{% elif step == 3 %}

Import emails from

Only import backup emails received on or after this date. Leave blank to import everything. Tip: set a recent date so old history doesn't flood the Review queue.

{% elif step == 4 %}

Additional users (optional)

Add team members now, or skip and do it later under Users.

{% if users %} {% for u in users %}{% endfor %}
EmailRole
{{ u.email }}{{ u.role }}
{% endif %}
{% elif step == 5 %}

Failure & missed-backup alerts

Where alerts and the daily digest go, and the SMTP server used to send them.

SMTP fields below are needed only for separate SMTP delivery. Send a test to your intended recipients in Settings before activation.

Saving finishes installation and opens Onboarding, where you bring in clients and jobs and activate monitoring. Mailbox, routing, schedule and notification checks stay available there and in Settings — sending a test email only proves your SMTP server accepted it, so confirm it arrived before treating the destination as verified.

{% endif %}
{% if step > 1 %}
{% endif %}
{% endblock %}