Topic "question about status of destination file after error"

Author Message
[View user's profile]

Joined: 2011-01-06
Posts: 1
we are looking at using scripting to transfer files to an SSH Host using the SCP protocol. we have multiple files to transfer. if we use the following put command

put *.asc - delete

if there are 5 files to send, what happens if there is an error sending the third file? is there a possibility of a partially-transfered file remaining on the server or is the partially-transferred file deleted from the server when there is an error?

if we use the command option batch abort, the script is terminated, if we do not use the option batch abort, would the script try to resend the third file again? or would the script continue on and try to send the 4th and 5th files?

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Partially transferred file will remain on the server.

If you do not enable batch mode, you will get a prompt asking what to do.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License