Since OpenSSH 6.3, you can use reget command in sftp
.
It has the same syntax as the get
, except that it starts a transfer from the end of an existing local file.
echo "reget /file/path" | sftp -r user@server_name
The same effect has -a
switch to the get command or global command-line -a switch of sftp.