Automated Zigbee2MQTT Backup & Secure Storage
detail.loadingPreview
Effortlessly automate your Zigbee2MQTT backups with this n8n workflow. Schedule regular backups, securely transmit them to an SFTP server, and ensure your smart home configurations are always protected.
About This Workflow
This n8n workflow provides a robust solution for automating your Zigbee2MQTT device backups. It leverages the power of scheduled triggers and MQTT communication to initiate a backup request directly from your Zigbee2MQTT instance. Upon receiving the backup data, the workflow parses the JSON response, converts the base64 encoded zip file into a binary format, and securely uploads it to a designated SFTP server with a timestamped filename. This ensures that your critical Zigbee network configurations are regularly backed up and stored safely, mitigating data loss risks and simplifying recovery processes.
Key Features
- Scheduled Backups: Automatically trigger backups at your preferred time and day.
- Secure SFTP Upload: Transmit backup files to your SFTP server for safe and remote storage.
- Real-time Monitoring: Utilizes MQTT for communication, allowing for immediate feedback on backup status.
- Automated File Handling: Converts raw backup data into a usable zip file and prepares it for upload.
- Timestamped Filenames: Ensures unique and organized backup files on your SFTP server.
How To Use
- Set up the Schedule Trigger: Configure the 'CRON Monday 2:45 am' node to define your desired backup schedule (e.g., weekly on Monday at 2:45 AM).
- Configure MQTT Nodes: Ensure your 'Send Zigbee2MQTT backup request' and 'MQTT Trigger - Backup Response' nodes are connected to your MQTT broker with the correct credentials and topics ('zigbee2mqtt/bridge/request/backup' and 'zigbee2mqtt/bridge/response/backup').
- Parse the Backup Data: The 'Parse JSON Object from Message Text' node is set up to extract the backup data from the MQTT message. Verify it correctly parses the 'data' field from the incoming JSON.
- Convert to Binary: The 'Convert to File - base64 to binary' node is configured to convert the base64 encoded 'zip' data into a binary format suitable for file transfer.
- Configure SFTP Upload: Set up the 'SFTP zip file content' node with your SFTP server details, including the correct host, port, username, password/key, and the desired remote path for storing your backups. The filename will be dynamically generated with a timestamp.
Apps Used
Workflow JSON
{
"id": "165ba844-c3dc-4b2f-b076-1456f12f95b2",
"name": "Automated Zigbee2MQTT Backup & Secure Storage",
"nodes": 21,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 165ba844-c3dc...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.