Topic "question about status of destination file after error"

Author Message
BillCottrell
[View user's profile]

Joined: 2011-01-06
Posts: 1
hi;
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?

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
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
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