Keep directory up to date

Advertisement

bohnjp
Joined:
Posts:
1

Keep directory up to date

I have a local folder that receives files and stays active for about 60 sec before being sent to an archive folder. As soon as a file hits the folder, WinSCP sends the file to a remote SFTP, which works great. The problem is, if there are any files on the SFTP site from a previous upload, when a sync is done, it adds the new file and removes anything that is already there, even though I do NOT have teh "Delete files" checked.
How would I continue to monitor my local folder, as soon as a file is put there, send it to the SFTP but not care what already exist on the SFTP. So if I have 1 new file to send, and there are 10 files on the SFTP, I just want to send the new one and end up with 11 files on the SFTP.
thanks for any help

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Keep directory up to date

That's what the command should do by default.

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum