Skip to main content

Homelab: Node-RED Backup & Restore

Buy Me A Coffee

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 token
  • telegram 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 code 0 if data exists, else 1)
  • backup: creates a backup
    • requires: --file
  • restore: restores from a backup
    • requires: --file
  • auto: performs a check and either creates a backup to or restores a backup from the given --file
    • requires: --file

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

Supporting

If you enjoy the application and want to support my efforts, please feel free to buy me a coffe. :)

Buy Me A Coffee

Metadata

Release files for homelab-node-red-backup 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for homelab-node-red-backup 3.0.0
File Size Uploaded
homelab_node_red_backup-3.0.0.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for homelab-node-red-backup 3.0.0
File Interpreter ABI Platform
homelab_node_red_backup-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / homelab_node_red_backup-3.0.0.tar.gz

Download URL homelab_node_red_backup-3.0.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e3cae7023e7bc0e6f137ffe261c50e743a8f8e4a52f8678fd7b14ed53c4aa662
BLAKE2b-256 checksum
How to use checksums
1925efe31f9e9d0395529db70c9ae48a8f664df92cec6058bee776dd607967e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 19, 2026.

Transparency log

Release files / homelab_node_red_backup-3.0.0-py3-none-any.whl

Download URL homelab_node_red_backup-3.0.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
608ca49055a3b15bc3a5ab9cd58cf38cda5a443c51f6f6ef270a5871cedf55e7
BLAKE2b-256 checksum
How to use checksums
88860843fe613129a55d6a3be42590eed9ccb893be733e098444f51d0904e072
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page