Skip to content

How to abort scp on failure using a flag?

Assuming scp 1 2 3 4 myhost:. is there a way to specify in the scp command to abort when the first failure occurs? scp default behaviour is to continue to the next file and not to stop and of course that can be addressed programmatically however looking for more ‘elegant’ approach if such exists. …