Hi all,
I am currently in the process of setting up an FTP server with limited knowledge
.
I have run into an issue that i need some help with.
Basically i want to be able to download files off another remote server twice a day every day but i want to make sure it only downloads new files not files i already have?
I have two scripts running, a send script and a receive script.
There are two folders on the remote side (drop) (receive), i want to download files from the receive folder that i have not received yet? Can this be done? Im using LFTP to connect to the server.
---------- Post updated at 03:47 AM ---------- Previous update was at 03:33 AM ----------
I have just been reading about a mirror command in lftp, would this be what im looking for?
If i was to put this into my script then at the end of the script do a mdelete * on the receive folder, when the next mirror runs would it see them files are missing then delete them locally to 'mirror' whats on the other side?