eskatos's thoughts

Another scpresume alias with rsync

leave a comment »

File copy over ssh is nice but it has no resume support. That can be a pain if dealing with big files and/or poor connectivity.

As a reminder to myself here is a shell alias I use :

alias scpresume='rsync -Pazhv -e ssh'

  • -P is the same as –partial –progress, this enable progress indication and partially downloaded files transfer to be resumed
  • -a activate archive mode to be recursive
  • -z enable compression
  • -h outputs human readable units
  • -v add more verbosity, especially reassuring with poor connectivity
  • ‘-e ssh’ is needed to use ssh as transport, you can change this to ‘-e “ssh -p XXXX”‘ if you need to change used port or any other ssh options
About these ads

Written by Paul

November 27, 2009 at 11:04 pm

Posted in Thoughts

Tagged with , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: