Last active
January 31, 2024 15:41
-
-
Save peko/edc9a859d834c57c00d85a9721353285 to your computer and use it in GitHub Desktop.
Fastest rsync I ever know
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tar cf - * | mbuffer -m 1024M | ssh -i ~/.ssh/<key.pem> <destination_ip> '(cd /home/ubuntu/<destination_folder>; tar xf -)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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