Last active
October 12, 2025 04:53
-
Star
(967)
You must be signed in to star a gist -
Fork
(170)
You must be signed in to fork a gist
-
-
Save KartikTalwar/4393116 to your computer and use it in GitHub Desktop.
Revisions
-
KartikTalwar revised this gist
Dec 27, 2012 . 1 changed file with 21 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,23 +5,31 @@ **rsync** (Everyone seems to like -z, but it is much slower for me) - a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files. - H: preserves hard-links - A: preserves ACLs - X: preserves extended attributes - x: don't cross file-system boundaries - v: increase verbosity - --numeric-ds: don't map uid/gid values by user/group name - --delete: delete extraneous files from dest dirs (differential clean-up during sync) - --progress: show progress during transfer **ssh** - T: turn off pseudo-tty to decrease cpu load on destination. - c arcfour: use the weakest but fastest SSH encryption. Must specify "Ciphers arcfour" in sshd_config on destination. - o Compression=no: Turn off SSH compression. - x: turn off X forwarding if it is on by default. **Original** ```sh rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" user@<source>:<source_dir> <dest_dir> ``` **Flip** ```sh rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" [source_dir] [dest_host:/dest_dir] ``` -
KartikTalwar created this gist
Dec 27, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ ### The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs) #### This creates an archive that does the following: **rsync** (Everyone seems to like -z, but it is much slower for me) -a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files. -H: preserves hard-links -A: preserves ACLs -X: preserves extended attributes -x: don't cross file-system boundaries -v: increase verbosity --numeric-ds: don't map uid/gid values by user/group name --delete: delete extraneous files from dest dirs (differential clean-up during sync) --progress: show progress during transfer **ssh** -T: turn off pseudo-tty to decrease cpu load on destination. -c arcfour: use the weakest but fastest SSH encryption. Must specify "Ciphers arcfour" in sshd_config on destination. -o Compression=no: Turn off SSH compression. -x: turn off X forwarding if it is on by default. **Flip** ```sh rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" [source_dir] [dest_host:/dest_dir] ``` This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" user@<source>:<source_dir> <dest_dir>