Summary: Configuring yt-dlp Download Path and Automating Cleanup in Docker-n8n Setup

I deployed n8n in ubuntu22.04 docker. Now I want to use yt-dlp to download videos. My yaml file is shown at the end. I need to change the yt-dlp download path from the original /home/node/ to the /root/videos path under the host, so that I can automatically delete these mp3 or mp4 files later.

  1. How to modify this path?
  2. I found that there is no sudo permission under /home/node/ during the process. What should I do?
  3. How to regularly clear n8n logs and these downloaded video files?
    Thank you and have a good day

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.