Resuming Scp File Transfer With Rsync

I always loved using scp tool for file transfer over internet.but faced some draw back of using it while internet connection get disconnected and file download terminated.now problem is unable to resume from current position.so googled it and found a way out.

1
rsync -e ssh --partial user@remote-ip:/file-directory /home/myself/Downloads

Download will be resumed from that point where it was terminated by any reason.-e ssh indicates rsync to use ssh and --partial indicates for partial downloaded files.one more cool feature is that you can see the progress while file is being downloaded.it will show current download rate as well as progress of the file downloaded.For that use prefix --progress.

1
rsync -e ssh --partial --progress user@remote-ip:/filedirectory /home/myself/download

if working with a directory use “-r”. example:

dealing with file
1
rsync -e ssh --partial --progress emacs@63.90.228.44:/home/emacs/goole_appengine.zip /home/redhat/Downloads
dealing with directory
1
rsync -e ssh --partial --progress -r emacs@63.90.228.44:/home/emacs/goole_appengine /home/redhat/Downloads

Comments