diff --git a/cheat/cheatsheets/ssh b/cheat/cheatsheets/ssh index 1f11907..e83bcce 100644 --- a/cheat/cheatsheets/ssh +++ b/cheat/cheatsheets/ssh @@ -28,3 +28,7 @@ ssh user@example.com -C -c blowfish -X # For more information, see: # http://unix.stackexchange.com/q/12755/44856 + +# Copy files and folders through ssh from remote host to pwd with tar.gz compression +# when there is no rsync command available +ssh user@example.com "cd /var/www/Shared/; tar zcf - asset1 asset2" | tar zxf -