D
D
Dmitry Kinash2014-11-24 15:29:29
linux
Dmitry Kinash, 2014-11-24 15:29:29

How to copy a file within a remote FTP server?

There is a task to copy data to a remote FTP server. In this case, the file should be in two directories - in the archive and in the program directory. In the archive due for history, all files will be saved with an indication of the upload time in the name. And in the working directory there should be a name - "current_data".
At the moment I'm successfully copying the file using the "append" command. But the file is large and uploading one copy takes about half an hour. I would like not to drive the same data over the network twice.
The help command in the ftp client and man ftp do not say anything about the possibility of copying within the remote server. There is only deletion and renaming of files. There is also the possibility of executing shell commands, but only on a local computer, and not on a remote one, as I would like.
The last hope is to combine the ntrans and nmap commands to point a file to more than one destination. But I could not find confirmation of this idea with examples.
It seems to me that this is a fairly common task for admins, integrators and developers. How do you, having only FTP access to a remote server, copy the same data (for example, the same backups to different screws)?
UPD.
1) The server from which the data is sent is running server ubunta without a graphical interface. Work on it happens via SSH. The result of the work will be a shell script that sends the required data by cron. I would like to reduce the script execution time, since after sending the data, it is necessary to mark the successful completion and execute some more data. And as a result, everything unjustified is delayed.
2) The server that receives the data is just an FTP server that does not provide SSH access to itself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2014-11-24
Madzhugin @Suntechnic

SFTP I
also often face the problem, but every time it's easier to just get ssh than to figure out how to use a hammer, which you hold on a rope tied to a handle, to tighten a screw.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question