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:
# 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\*.*"
I'm using wildcard for selecting the files.The above is the script. Thanks!
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).