wms lego backup¶
Back up your LEGO collection (sets, owned parts, history), without the re-downloadable catalog
Writes a consistent copy of lego.db using SQLite's VACUUM INTO, then drops the offline catalog, the API cache
and the image cache tables from the copy, so the file is small. The catalog comes back with
wms lego catalog refresh. --encrypt seals it with a passphrase exactly like wms backup --encrypt.
--github also uploads the sealed file as a release on a private GitHub repo (implies --encrypt — a
plaintext backup is never uploaded) using the same gh CLI scripts/publish.sh already needs; nothing
reaches GitHub unless you run this flag yourself, same as publish.sh and promote-dev.sh.
wms lego backup [flags]
Examples¶
wms lego backup
wms lego backup --encrypt --github
Options¶
--dir string where to write it (default: <backup dir>/lego)
--encrypt seal the backup with a passphrase (age)
--github also upload the sealed backup to a private GitHub repo (implies --encrypt)
--passphrase-file string read the passphrase from this file