Skip to content

Instantly share code, notes, and snippets.

@nkcr
Last active February 25, 2016 21:04
Show Gist options
  • Save nkcr/97bd8555077eeffac6a5 to your computer and use it in GitHub Desktop.
Save nkcr/97bd8555077eeffac6a5 to your computer and use it in GitHub Desktop.

rsync version 3.1.2

rsync -a --progress --stats --human-readable -e "ssh -T -c arcfour -o Compression=no -x" <source> <destination>

https://gist.github.com/KartikTalwar/4393116

  • -a archive mode
  • --progress --human-readable show progress in readble manner
  • -e specify remote shell to use
  • -T Disable pseudo-terminal allocation, decrease destination CPU load
  • -c select the cipher specification to encrypt. Use a fast but insecure one
  • -o give ssh option like in the sshd_config
  • -x turn off x11 forwarding

To remove source

rsync -a --progress --stats --remove-source-files --human-readable -e "ssh -T -c arcfour -o Compression=no -x" <source> <destination>

Gives me up to 125MB/s on a gigabit connection.

To check network speed, run on the server

iperf -s

and on the client

iperf -c <server ip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment