Sunday, May 31, 2009

Resume scp after a stalled network connection

yeah! it was a pain.. but no more for me. try rsync on failed scped files


rsync --partial --progress --rsh=ssh user@scpenabledhost:/home/path/file .


if it's too long, add an alias in your .bashrc.


alias scpresume="rsync --partial --progress --rsh=ssh"


now you can comfortably hit up key once and replace "ssh" in previous command with our new alias "scpresume"


scpresume user@scpenabledhost:/home/path/file .


happy rsyncing!! :D

0 comments: