`--export-config` and `--configure` as backup&restore not reliable

Offen
#891 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
python
Bereich
cli

Rechercherichtung

Start with how the --export-config and --configure (--config) flags read and write settings in the CLI, and compare the exported YAML against what the device reports for channels, keys and favorited nodes. Reproducing needs a Meshtastic device connected over serial, and the issue does not say which code path drops the favorites, keys or channels. Done means a round trip export then import restores those fields, with the cause identified and a test or a documented limitation.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

I was expecting that --export-config i.c.w. a subsequent --configure was a suitable method to backup and restore node settings. While partially successful, there are some issues:

  • On my T-Deck running 2.7.18 alpha I did $ pipx run "meshtastic[cli]" --export-config > config.yaml. The resulting config seems mostly complete. However, favorited nodes are missing from the export.
  • After resetting my T-Deck, I tried to restore the configuration via $ pipx run "meshtastic[cli]" --config config.yaml.
    • The private and public key were not restored (properly). I had to restore them using MUI from on-device backup.
    • The channels were not configured.

The settings not imported (channels, keys) are part of the config.yaml. The output of --configure also indicates that they are set in the process.

I'm not using remote admin, so I don't know if those keys are properly backed-up and restored. Same goes for many other module settings.

I'm not sure if I'm just using it wrong, or due to incompatibility in protobufs (I'm using firmware 2.7.18), or if these are bugs. My main goal is to backup&restore settings, and this looked like the most promising method.

The T-Deck Plus is connected via USB serial, on Kubuntu 25.10. Using CLI version 2.7.6.

Vorherrschende Sprache
Python
Sterne
855
Forks
355
Ø Merge
3 T. 3 Std.
Gemergte PRs (30 T.)
12

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus meshtastic/python

Alle Issues in meshtastic/python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.