Skip to content

starkone-m365-backup CLI

starkone-m365-backup is a standalone binary for running Microsoft 365 mailbox backups. It is invoked by the panel's M365 Backup plugin.

starkone-m365-backup [command] [flags]

Commands

Run Backup

starkone-m365-backup run

Starts a full backup run for all configured mailboxes.

Run for Specific User

starkone-m365-backup run --email [email protected]

Check Status

starkone-m365-backup status

Version

starkone-m365-backup --version

Configuration

The binary reads configuration from /etc/starkone/m365-backup.conf or from environment variables set by the panel:

Variable Description
AZURE_TENANT_ID Azure AD tenant ID
AZURE_CLIENT_ID Azure app registration client ID
AZURE_CLIENT_SECRET Azure app client secret
S3_ENDPOINT S3-compatible endpoint URL
S3_BUCKET S3 bucket name
S3_ACCESS_KEY S3 access key
S3_SECRET_KEY S3 secret key
S3_REGION S3 region

Scheduling

The binary is typically called by a cron job managed by the panel. To schedule manually:

# Daily at 2:00 AM
0 2 * * * /usr/sbin/starkone-m365-backup run >> /var/log/starkone/m365-backup.log 2>&1