Skip to content

Instantly share code, notes, and snippets.

@peko
Last active January 31, 2024 15:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peko/edc9a859d834c57c00d85a9721353285 to your computer and use it in GitHub Desktop.
Save peko/edc9a859d834c57c00d85a9721353285 to your computer and use it in GitHub Desktop.
Fastest rsync I ever know
#!/bin/bash
tar cf - * | mbuffer -m 1024M | ssh -i ~/.ssh/<key.pem> <destination_ip> '(cd /home/ubuntu/<destination_folder>; tar xf -)'
#!/bin/bash
rsync -aHAXxv \
--exclude /server/dump.rdb \
--numeric-ids \
--delete --progress \
-e "ssh -T -c arcfour -o Compression=no -x" \
/what usern@where:/folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment