2026-02-09 09:33:17 -05:00
2026-01-19 22:18:13 -05:00
2026-01-19 22:17:19 -05:00
2026-01-19 22:17:19 -05:00
2026-01-19 22:18:13 -05:00
2026-01-27 13:03:36 -05:00
2026-02-09 09:33:17 -05:00

🛡️ ComfyUI Workflow Backup

A custom node for ComfyUI that allows you to backup your current workflow (API format) and all the models used in it to a specific destination (Local or External Drives).

✨ Features

  • 💾 Full Backup: Saves the workflow .json and copies all necessary models (Checkpoints, LoRAs, VAEs, etc.).
  • 🔒 Enterprise Security: Includes a path sanitizer and a whitelist system to prevent unauthorized file system access.
  • 📂 External Drive Support: Safely backup to USB drives, NAS, or secondary hard drives using the whitelist configuration.
  • 📊 Analysis Mode: Preview which files will be copied and the total size before executing the backup.
  • 🌎 Bilingual: Output logs available in English and Spanish.

⚙️ Configuration (Crucial Step!)

To comply with strict security standards, this node blocks write access to external drives by default.

To allow backups to external drives (e.g., D:/, E:/, /mnt/), you must create a configuration file manually:

  1. Go to the node directory: ComfyUI/custom_nodes/ComfyUI-Workflow-Backup/
  2. Create a new file named extra_paths.json.
  3. Add the allowed root folders inside using the JSON format below.

Example extra_paths.json:

{
    "allowed_paths": [
        "D:/ComfyUI_Backup",
        "E:/MyExternalDrive",
        "/mnt/backups"
    ]
}
⚠️ Note: If extra_paths.json is missing or the destination path is not whitelisted, the node will force the backup to be saved inside the standard ComfyUI/output/workflow_backups folder.

📦 Installation
Via ComfyUI Manager:

Search for "Workflow Backup" in the Manager and click Install.

Manual Installation:

Go to your custom_nodes folder.

Run: git clone https://github.com/zavatmotion/ComfyUI-Workflow-Backup.git

Restart ComfyUI.

🚀 How to Use
Quick Start: You can load the included Models-Backup.json workflow file to get started immediately.

Add the node "Workflow Backup" (Category: utils/backup).

Workflows Path: Paste the path where your .json workflows are located.

Backup Destination: Choose where to save the backup.

Remember: If you want to use an external drive, you must add it to extra_paths.json first.

Mode:

ANALYSIS_ONLY: Checks files and calculates size (Safe mode).

EXECUTE_BACKUP: Performs the actual copy.

Created by zavatmotion
S
Description
No description provided
Readme MIT
72 KiB
Languages
Python 100%