Skip to content

Instantly share code, notes, and snippets.

@foxycode
Created December 21, 2022 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxycode/4029144bedebef2ada5ff2bea8143f05 to your computer and use it in GitHub Desktop.
Save foxycode/4029144bedebef2ada5ff2bea8143f05 to your computer and use it in GitHub Desktop.
Fastest rsync possible
#!/bin/bash
# First run
rsync -aHAXxv --numeric-ids --no-compress --inplace -W --delete --progress \
-e "ssh -T -c aes128-ctr -o Compression=no -x" \
server1:/dir/ /dir/
# Second run
rsync -av --numeric-ids --no-compress --delete --progress \
-e "ssh -T -c aes128-ctr -o Compression=no -x" \
server1:/dir/ /dir/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment