A simple system for automatically downloading ComfyUI output images to Dropbox (or any rclone destination) and tracking which files have been downloaded.
- Automatically downloads new images from ComfyUI's output folder
- Runs every 10 seconds via cron
- Tracks downloaded images to avoid duplicates
- Simple commands to manage the download system
- RunPod container with ComfyUI installed
- rclone configured with a Dropbox remote (or other destination)
- cron installed in the container
- Clone this repository to your RunPod container:
git clone https://github.com/rafstahelin/comfy-download.git
cd comfy-download
- Run the setup script:
chmod +x setup.sh
./setup.sh
- Start the download system:
start
After installation, you'll have the following commands available:
Command | Description |
---|---|
start |
Start the automatic download system |
stop |
Stop the automatic download system |
status |
Show current download statistics |
run |
Run a download check manually once |
reset |
Clean up duplicate entries in the log file |
dl-help |
Display command reference |
- The system uses cron to run a check every minute
- Each check runs 6 times with a 10-second pause, ensuring new images are detected quickly
- Images are downloaded from
/workspace/ComfyUI/output/YYYY-MM-DD/
to your configured destination - Downloaded files are tracked in a log file to avoid re-downloading
You can modify the scripts to change:
- The source directory path (default:
/workspace/ComfyUI/output/YYYY-MM-DD/
) - The destination path (default:
dbx:/studio/ai/output/output-eagle.library/output-eagle
) - The check frequency (default: every 10 seconds)
Edit the download_images.sh
file to change these settings.
Logs are stored in the following locations:
- Download log:
/workspace/ComfyUI/logs/downloaded_YYYY-MM-DD.log
- Cron execution log:
/workspace/ComfyUI/logs/cron.log
If you encounter issues:
- Check if cron is running:
service cron status
- Verify your rclone configuration:
rclone config show
- Check the logs:
cat /workspace/ComfyUI/logs/cron.log
- Run the download script manually:
run
- Reset the log file if there are duplicates:
reset