I have scp copying over a ~50GB tgz from 'Server A' to an external USB HDD on 'Server B' on LAN (FYI: B does not have enough space to hold the file and then pass it onto the external HDD). It fails out with 'lost connection' (I don't have screengrab of it right now but it is literally just that).
I've considered checking the scp status after running with $? and then retrying however it would be a waste of resources if the scp fails after 95% (or any % really).
I can't seem to find any retry/resume options with scp (maybe for good reasons).
Is there something I'm missing in the man?
Any better methods to securely copy across (FTP via an SSH tunnel, rsync, other)?
Thanks in advance.