cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: multiple ftp upload

From: JRMargelidon <jrmargelidon_at_catalliances.net>
Date: Tue, 25 May 2004 13:02:39 +0200

Daniel Stenberg wrote:

>On Tue, 25 May 2004, jean-renaud margelidon wrote:
>
>
>
>>>>is there any way to make multiple ftp upload. i mean, i need to upload the
>>>>same file on mutiple directory on the same ftp server
>>>>
>>>>
>
>
>
>>> curl -T file -T file ftp://domain.com/path1/ ftp://domain.com/path2/
>>>
>>>
>>is this will d multiple upload or one upload and multiple copies ???
>>
>>
>
>This is multiple uploads, just like you asked for.
>
>AFAIK, there is no equivalent to "copy" or "cp" in FTP, so you can't easily do
>that.
>
>I would of course consider setting up the ftp server to symlink from the other
>places to the single file. It seems stupid to have the same file on multiple
>places, physically.
>

it should be stupid to make that, BUT it is not ... is some cases i need
to copy the same file on multiple directory
Received on 2004-05-25