question about status of destination file after error

Advertisement

BillCottrell
Joined:
Posts:
1

question about status of destination file after error

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,227
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

Reply with quote

Advertisement

You can post new topics in this forum