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

Author Message
zenpie
[View user's profile]

Joined: 2016-09-08
Posts: 6
Location: USA
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?? Mr. Green
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Sorry, but that's a too broad question. What files are being created? Local or remote? What is the remote system? What protocol?
zenpie
[View user's profile]

Joined: 2016-09-08
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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
How do you move the files? Using specific names or using a wildcard? Show us your script!
zenpie
[View user's profile]

Joined: 2016-09-08
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!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
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).
zenpie
[View user's profile]

Joined: 2016-09-08
Posts: 6
Location: USA
Thanks Martin. Very Happy
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License