Question about synchronizing remote directory to server

Advertisement

Guest

Question about synchronizing remote directory to server

First off, hello all and thanks for all the documentation everyone has already provided.
I have a question about synchronizing files and how it functions, but unfortunately I do not have the ability to upload a log file as this is a work thing.

We have a remote directory on a window file share which is used by multiple people to store files for transfer to a server. I have created a batch file to sync the remote directory folder to the server, which generally works great. The contents of the file called by the batch file is:
#Resources Can be Found here - https://winscp.net/eng/docs/scripting
option batch abort
option confirm off
open sftp://[SERVER AND HOSTKEY]"
synchronize remote -delete [local network remote directory] [server remote directory]
exit
cmd /k

This code functions great if a new folder is placed into the [local network remote directory] and the script is run.
The problem occurs when a new file is placed into an older folder and the script is run.
In this case no files are transferred and no error is thrown.

In the log file I can see that it finds the files and marks them as new (Don't know what the implication is of this mark)
[date/time] Local file '[new file in old folder]' [date/time] [63944] is new
[date/time] Local file '[second new file in old folder]' [date/time] [166476] is new

At the end of my log file there are some errors uploading Thumbs.db to the server but this doesn't stop the transfer of brand new folders so I doubt that it is doing anything to the current transfer.

Am I doing something wrong or do I just not fully understand how this should work? Is there something more specific that I should provide from the log file?

Thanks!

Reply with quote

Advertisement

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

Re: Question about synchronizing remote directory to server

Anonymous wrote:

At the end of my log file there are some errors uploading Thumbs.db to the server but this doesn't stop the transfer of brand new folders so I doubt that it is doing anything to the current transfer.
With option batch abort any error causes an abort. So it's likely the problem. The new folders are probably uploaded before the Thumbs.db is encountered, while the new files in the existing folders would come only later.

Reply with quote

Advertisement

You can post new topics in this forum