There is a script for uploading a file to FTP. Everything is good, but I just could not find the parameter that is responsible for the file name on the remote server. There is an option to separately connect to the FTP and rename the file, but I think this is not comme il faut.

ftp -in -u ftp://User:Passwordftp@10.28.1.1/Dir/ Test.files.tgz 
  • And you have ncftp, it's more convenient to use it for such things. ncftpput -u User -p Password -C 10.28.1.1 /local/path/file /Dir/remote_file_name - Mike
  • I don't have it. - Radzhab

1 answer 1

just enter the name you need:

 $ ftp ... ftp://.../ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³/Π½ΡƒΠΆΠ½ΠΎΠ΅.имя Π»ΠΎΠΊΠ°Π»ΡŒΠ½Ρ‹ΠΉ.Ρ„Π°ΠΉΠ» 

By the way, by the way, and the curl program you can upload files:

 $ curl -T Π»ΠΎΠΊΠ°Π»ΡŒΠ½Ρ‹ΠΉ.Ρ„Π°ΠΉΠ» ftp://.../ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³/Π½ΡƒΠΆΠ½ΠΎΠ΅.имя