From 511c57f5829cb506bcf63666acc4c451271a6987 Mon Sep 17 00:00:00 2001 From: Josef Glatz Date: Thu, 6 Aug 2015 14:46:21 +0200 Subject: [PATCH] [DOCUMENTATION] Cmd 'ssh' copy files with gzipped on the fly --- cheat/cheatsheets/ssh | 4 ++++ 1 file changed, 4 insertions(+) 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 -