Ftp Automate

Ftp Automate streamlines the backup process by automatically requesting and storing Zigbee2MQTT backups every Monday at 2:45 AM. This workflow efficiently converts backup data into files and uploads them securely via SFTP, ensuring reliable data storage and easy access.

7/8/2025
6 nodes
Medium
schedulemediumftpschedule triggermqttmqtttriggerconverttofileautomationcronfilesstorage
Categories:
Schedule TriggeredTechnical Infrastructure & DevOpsMedium Workflow
Integrations:
FtpSchedule TriggerMqttMqttTriggerConvertToFile

Target Audience

This workflow is designed for:
- Home Automation Enthusiasts: Individuals who want to automate the backup of their Zigbee2MQTT configurations.
- Developers: Those who need a reliable way to schedule and manage backups of IoT devices.
- System Administrators: Professionals responsible for maintaining and securing IoT network configurations.
- Small Business Owners: Owners who utilize Zigbee technology for their operations and want to ensure data integrity through regular backups.

Problem Solved

This workflow addresses the challenge of manually backing up Zigbee2MQTT configurations. It automates the following:
- Scheduled Backups: Ensures backups are performed at 2:45 AM every Monday, eliminating the need for manual intervention.
- Data Integrity: By automating the backup process, it reduces the risk of data loss and ensures that the latest configurations are securely stored.
- File Management: Automatically converts the backup data into a zip file format and uploads it to an SFTP server, streamlining the backup process.

Workflow Steps

  • Schedule Trigger: The workflow begins with a CRON trigger that activates every Monday at 2:45 AM.
    2. Send Backup Request: It sends a message to the Zigbee2MQTT bridge requesting a backup with the message 'getbackup'.
    3. MQTT Trigger: The workflow listens for a response from the Zigbee2MQTT bridge, specifically for the backup data.
    4. Parse Response: Once the backup response is received, the JSON message is parsed to extract the relevant data.
    5. Convert to File: The extracted backup data, which is in base64 format, is converted to a binary file.
    6. Upload to SFTP: Finally, the binary file is uploaded to an SFTP server, ensuring the backup is securely stored.
  • Customization Guide

    Users can customize this workflow by:
    - Changing the Backup Schedule: Modify the CRON expression in the Schedule Trigger to adjust the frequency and timing of backups.
    - Modifying MQTT Topics: Update the MQTT topics in the Send Zigbee2MQTT backup request and MQTT Trigger nodes to match your specific configuration.
    - Adjusting File Storage Path: Change the path in the SFTP node to specify a different directory or file naming convention for the backups.
    - Adding Notifications: Integrate additional nodes to send notifications (e.g., via email or messaging apps) upon successful backup completion or in case of errors.