Skip to main content

Backup and Restore for Node-RED.

Project description

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

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

homelab_node_red_backup-2.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

homelab_node_red_backup-2.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

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

Hashes for homelab_node_red_backup-2.1.0.tar.gz
Algorithm Hash digest
SHA256 b0615e9c04f55e543c2aa428320c65d030286c7cc05e1f29552593fb7a7a226e
MD5 198c22e0e2e3d3a436c88fd10d106271
BLAKE2b-256 9bf2b155baeb26fe417d93a22bfbd8bb274a934ba0f074d9c9ad16506275aa72

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file homelab_node_red_backup-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for homelab_node_red_backup-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b19c0b6ee32bfb04d37546a9be5ba31159a61e8760f3ab54a19911dc94120253
MD5 fbaf1ab0def3c1260417117566c3869b
BLAKE2b-256 fc328d9db9654f64e61686be32e953d7f9880d1cfc84b4211dccc9b3cb8c8a34

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page