Upload Media file to external FTP Server

Hi Guys
I try to upload Media files to an external FTP Server.
The purpose is, to upload generated Pictures for a timelaps movie.

i made the following shell command:
upload_media_files: 'curl -T /media/20210222_0722_espcam.jpg --user user:pass www.server.com'

Upload is not working. Is this possible at all?
Is there a nother solution, to upload pictures to external FTP directory?


I created an add-on to allow mirroring of files from HA to an FTP server. It might be what you are looking for:

New Home Assistant Add-on: LFTP Mirror