Keepuptodate keeps transfering files it has already transfered

Advertisement

rberberi
Guest

Keepuptodate keeps transfering files it has already transfered

Hi. I have a working script which keeps a remote ftp-server directory up to date with a local directory. It sees changes in the local directory, copies the new files and folder structure to the remote one and then waits for changes again. The problem is that when a new file is added, which happens every minute, it copies the new file together with all the other files that were copied since the script started running. Is there a way to copy only the recently added file and not the files that were already copied to the server?

Reply with quote

Advertisement

rberberi
Guest

Re: Keepuptodate keeps transfering files it has already transfered

martin wrote:


Hi. Thanks for your reply. I have already read the faq link. I don't want to use synchronization with timestamps because even if it does not copy old files, it has to go through all the older folder and files and compare, which it should normally not take long but if we are talking about more than 2000 folders then it does take long to copy the new files.
I found a temporary solution where I use keepuptodate and I use Windows Task Scheduler to Start and End the batch file every 30 minutes so that it does not go through thousands of files all the time but only the ones created in the last 30 minutes. Maybe there is a better way to solve this using some WinSCP command but I have not found one yet.

Reply with quote

Advertisement

You can post new topics in this forum