Creation and moving of files takes place at same time???

Advertisement

zenpie
Joined:
Posts:
6
Location:
USA

Creation and moving of files takes place at same time???

Hi, I've got a curious question. What happens if the moving(remote to local servers) of the files takes place while when they were being created at that particular point of time(like 08:00, 09:00 and so on).

Will all those files be moved without fail. Or else some be missing.Or something else happens. Plz tell what happens?? :mrgreen:

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,760
Location:
Prague, Czechia

Re: Creation and moving of files takes place at same time???

Sorry, but that's a too broad question. What files are being created? Local or remote? What is the remote system? What protocol?

Reply with quote

zenpie
Joined:
Posts:
6
Location:
USA

Hi Martin, The xml files are being created in a folder of remote server. That remote server is a Linux server. And the protocol being used for that server is SFTP.

The thing is that, what happens if the files being created and also they being moved to a folder in local machine at the same time?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,760
Location:
Prague, Czechia

How do you move the files? Using specific names or using a wildcard? Show us your script!

Reply with quote

zenpie
Joined:
Posts:
6
Location:
USA

# Establish the connection
open sftp://(remote server details along with private key)
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Force binary mode transfer
option transfer binary
get -delete -preservetime -resumesupport=off "/users/client/xml/*.xml" "E:\ImportedFiles\pdf\*.*"
exit

I'm using wildcard for selecting the files.The above is the script. Thanks!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,760
Location:
Prague, Czechia

WinSCP will retrieve list of all *.xml files in the directory.
It will then download and delete those.
If new files are created during the operation, WinSCP will not process those (as it is not aware of them).

Reply with quote

Advertisement

You can post new topics in this forum