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

Aperta
#891 1 commento 3 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
855
Fork
355
Merge medio
3g 3h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di meshtastic/python

Tutte le issue di meshtastic/python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.