Skip to content

Manual Backup only backs up primary source when multiple sources are configured #3711

Description

@Yeraze

Description

When running Manual Backup with multiple sources configured, only the primary/first source is backed up. The other sources are silently ignored.

Root cause (from code review)

BackupManagementSection.tsx:152 calls /api/device/backup?save=true with no sourceId parameter. The backend endpoint (deviceRoutes.ts:46) accepts an optional sourceId and falls back to resolveSourceManager(undefined) — which always returns the primary meshtasticManager singleton — when none is provided.

The backend supports per-source backup, but the UI has no source selector and never passes a sourceId. Multi-source setups have no way to back up non-primary sources at all.

Steps to reproduce

  1. Configure two or more Meshtastic sources in MeshMonitor
  2. Go to Settings → Backup → Manual Backup
  3. Click the backup/download button
  4. Observe: only the primary source's config is included in the backup

Expected behavior

Either:

  • A source selector in the Manual Backup UI allowing the user to choose which source to back up, or
  • An "All sources" backup that iterates over all configured sources and bundles them together

Version

MeshMonitor v4.12.0-rc1

Authored by NodeZero 0️⃣

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions