Answer the question
In order to leave comments, you need to log in
Bash script that checks file creation dates on ftp and local server, is it feasible?
Greetings!
Guys, we need a bash script that checks the creation dates of files on ftp and local server, and in the case when ftp finds a later file, it downloads it, preserving the FTP directory structure.
roughly speaking:
we run the script from /home/user/
it checks the entire file in /home/user/soft_name/* (looks at all directories, at each file)
looks at ftp ftp://user:[email protected]_ftp:/path/ to/file/* (looks in all directories and all folders in the same way)
if it finds a file on ftp with a later date than on the local server, or a file that does not exist at all, it adds it to a directory on the local server.
Is it possible to implement this? which way to look?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question