I
I
Ilya Pavlov2015-08-24 14:48:25
ubuntu
Ilya Pavlov, 2015-08-24 14:48:25

Uploading files to an FTP server from a network-awaiting directory?

Is there a program for Ubuntu that sends all files from a certain directory to an FTP server, with the condition that there may not be a network connection at the moment and it will wait for the Internet?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily, 2015-08-24
@PiCoderman

Well, I would write a script. We ping some external service to detect network operation. As soon as the network appeared, we start copying files using the *.* mask. If the connection is interrupted (copying is completed with errorlevel > 0), we restart the ping until it appears.
Of course, the script should move, not copy, so that it does not copy the same files in a circle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question