Backup and Restore for Node-RED.
Project description
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
Supporting
If you enjoy the application and want to support my efforts, please feel free to buy me a coffe. :)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file homelab_node_red_backup-2.1.0.tar.gz.
File metadata
- Download URL: homelab_node_red_backup-2.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0615e9c04f55e543c2aa428320c65d030286c7cc05e1f29552593fb7a7a226e
|
|
| MD5 |
198c22e0e2e3d3a436c88fd10d106271
|
|
| BLAKE2b-256 |
9bf2b155baeb26fe417d93a22bfbd8bb274a934ba0f074d9c9ad16506275aa72
|
Provenance
The following attestation bundles were made for homelab_node_red_backup-2.1.0.tar.gz:
Publisher:
release.yml on muhlba91/homelab-node-red-backup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
homelab_node_red_backup-2.1.0.tar.gz -
Subject digest:
b0615e9c04f55e543c2aa428320c65d030286c7cc05e1f29552593fb7a7a226e - Sigstore transparency entry: 404461806
- Sigstore integration time:
-
Permalink:
muhlba91/homelab-node-red-backup@cb864f9f94677844facaef708abe2bcd88cbd868 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/muhlba91
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cb864f9f94677844facaef708abe2bcd88cbd868 -
Trigger Event:
push
-
Statement type:
File details
Details for the file homelab_node_red_backup-2.1.0-py3-none-any.whl.
File metadata
- Download URL: homelab_node_red_backup-2.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b19c0b6ee32bfb04d37546a9be5ba31159a61e8760f3ab54a19911dc94120253
|
|
| MD5 |
fbaf1ab0def3c1260417117566c3869b
|
|
| BLAKE2b-256 |
fc328d9db9654f64e61686be32e953d7f9880d1cfc84b4211dccc9b3cb8c8a34
|
Provenance
The following attestation bundles were made for homelab_node_red_backup-2.1.0-py3-none-any.whl:
Publisher:
release.yml on muhlba91/homelab-node-red-backup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
homelab_node_red_backup-2.1.0-py3-none-any.whl -
Subject digest:
b19c0b6ee32bfb04d37546a9be5ba31159a61e8760f3ab54a19911dc94120253 - Sigstore transparency entry: 404461819
- Sigstore integration time:
-
Permalink:
muhlba91/homelab-node-red-backup@cb864f9f94677844facaef708abe2bcd88cbd868 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/muhlba91
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cb864f9f94677844facaef708abe2bcd88cbd868 -
Trigger Event:
push
-
Statement type: