Homelab: Node-RED Backup & Restore
This repository contains Python scripts leveraging the Node-RED Admin API endpoints to create and restore backups.
Attention: the Node-RED installation must either be unsecured or secured by OAuth!
Installation
The package is published in (Test)PyPi and can be installed via:
pip install homelab-node-red-backup
Configuration
The following arguments are available:
--endpoint/-e: the Node-RED endpoint--file/-f: the JSON file--jwt-token/-jwt: the JWT token to authenticate with
Credentials
Credentials are detected, retrieved, and merged to the output JSON file. The following credential types are recognized:
servers: e.g. a Home Assistant server with an access tokentelegram bot: Telegram bot with a token
Usage
The following commands are available, and all commands require the arguments --endpoint, and, optionally, --jwt-token set.
check: checks if data exists for a backup (return code0if data exists, else1)backup: creates a backup- requires:
--file
- requires:
restore: restores from a backup- requires:
--file
- requires:
auto: performs acheckand either creates a backup to or restores a backup from the given--file- requires:
--file
- requires:
Examples
# checking if data exists
homelab-node-red-backup check -e http://localhost:1880 -jwt <TOKEN>
# creating a backup
homelab-node-red-backup backup -e http://localhost:1880 -jwt <TOKEN> -f backup.json
# restoring from the backup
homelab-node-red-backup restore -e http://localhost:1880 -jwt <TOKEN> -f backup.json
Development
Tool versions (Python, uv, Poetry) are managed with mise: run mise trust and mise install once, then use the usual commands (poetry install, poetry run pytest).
Supporting
If you enjoy the application and want to support my efforts, please feel free to buy me a coffe. :)
Metadata
Release files for homelab-node-red-backup 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| homelab_node_red_backup-3.0.1.tar.gz | 6.2 kB | With provenance | Details for homelab_node_red_backup-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| homelab_node_red_backup-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for homelab_node_red_backup-3.0.1-py3-none-any.whl |
Total release size: 15.6 kB
Release files / homelab_node_red_backup-3.0.1.tar.gz
| Download URL | homelab_node_red_backup-3.0.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19af90e37468d60cb7d1a04cbe0ba61609f62e0672b4d4337fa48d41da72bde7
|
|
BLAKE2b-256 checksum How to use checksums |
d39f4d53326399efb5565139d68bb95bdaba8d34a29041fa941b904d4c1a2df1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / homelab_node_red_backup-3.0.1-py3-none-any.whl
| Download URL | homelab_node_red_backup-3.0.1-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2050f2ff38a6735ae9b20e337e6885b839fa78193e7064c8065c6f48932fe6f
|
|
BLAKE2b-256 checksum How to use checksums |
b51abcfbf34bd98192694d5ad3ea07b7dc806726caa9f6dc5a5dda8f0f2c691b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logSecurity for homelab-node-red-backup 3.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for homelab_node_red_backup-3.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.